Ejemplo n.º 1
0
        public async Task <FollowingResult> UnFollowAsync(String access, Int32 topicId, String loginId)
        {
            var api    = new TopicApi();
            var result = await api.UnFollowAsync(access, topicId, loginId);

            return(result);
        }
Ejemplo n.º 2
0
        public async Task <TopicResult> GetDetailAsync(String access, int topicId, Boolean autoCache = false)
        {
            var api    = new TopicApi();
            var result = await api.GetDetailAsync(access, topicId, autoCache);

            return(result);
        }
Ejemplo n.º 3
0
        public async Task <TopicsResult> GetFatherTopicsAsync(String access, String request,
                                                              Boolean autoCache = false)
        {
            var api    = new TopicApi();
            var result = await api.GetFatherTopicsAsync(access, request, autoCache);

            return(result);
        }
Ejemplo n.º 4
0
        public async Task <AuthorsResult> GetBestAnswerersAsync(String access, String request,
                                                                Boolean autoCache = false)
        {
            var api    = new TopicApi();
            var result = await api.GetBestAnswerersAsync(access, request, autoCache);

            return(result);
        }
Ejemplo n.º 5
0
        public async Task <FollowingResult> CheckFollowingAsync(String access, int topicId,
                                                                Boolean autoCache = false)
        {
            var api    = new TopicApi();
            var result = await api.CheckFolloingAsync(access, topicId, autoCache);

            return(result);
        }
Ejemplo n.º 6
0
        public bool Install(Harmony instance, ConfigFile config)
        {
            if (StudioAPI.InsideStudio || Interlocked.Increment(ref _installed) != 1)
            {
                return(false);
            }

            var insertCat = StoreApi.RegisterShopItemCategory(ResourceUtils.GetEmbeddedResource("icon_insertable.png").LoadTexture());

            StoreApi.RegisterShopItem(SuppositoryStoreId, "Family Making Tampons",
                                      "Cum delivery devices disguised as a pack of tampons. Thanks to multiple patented technologies the conception rate is close to 100%. Perfect as a gift. (Doesn't work on infertile characters)",
                                      StoreApi.ShopType.NightOnly, StoreApi.ShopBackground.Pink, insertCat, 3, true, 100, 461, onBought: item => TopicApi.AddTopicToInventory(SuppositoryTopicId));

            TopicApi.RegisterTopic(SuppositoryTopicId, "Family Making Tampons", TopicApi.TopicCategory.Love, TopicApi.TopicRarity.Rarity5, GetAdvScript, GetAdvResult);

            return(true);
        }