public async Task <Result> IgnoreFriendREquest(string username, string currentUserOnlineId, UserAuthenticationEntity userAuthenticationEntity, string region = "jp", string language = "ja")
        {
            var url    = string.Format(EndPoints.DenyAddFriend, region, currentUserOnlineId, username);
            var result = await _webManager.DeleteData(new Uri(url), null, userAuthenticationEntity, language);

            return(new Result(result.IsSuccess, string.Empty));
        }
Exemple #2
0
        public async Task <bool> IgnoreFriendRequest(string username, UserAccountEntity userAccountEntity)
        {
            try
            {
                var user   = userAccountEntity.GetUserEntity();
                var url    = string.Format(EndPoints.DenyAddFriend, user.Region, user.OnlineId, username);
                var result = await _webManager.DeleteData(new Uri(url), null, userAccountEntity);

                return(result.IsSuccess);
            }
            catch (Exception ex)
            {
                throw new Exception("Error removing friend", ex);
            }
        }
        public async Task <Result> DeleteMessageThread(string messageGroupId, string onlineId,
                                                       UserAuthenticationEntity userAuthenticationEntity, string region = "jp")
        {
            var url = string.Format(EndPoints.DeleteThread, region, messageGroupId, onlineId);

            return(await _webManager.DeleteData(new Uri(url), null, userAuthenticationEntity));
        }
        public async Task <Result> RemoveEvent(string id, string username, UserAuthenticationEntity userAuthenticationEntity, string region = "ja")
        {
            var url = string.Format(EndPoints.AddRemoveEvent, region, id, username);

            return(await _webManager.DeleteData(new Uri(url), null, userAuthenticationEntity));
        }
        public async Task <FlagResponse> DeleteFlagOnByteAsync(string postId)
        {
            var result = await _webManager.DeleteData(new Uri(string.Format(Endpoints.AddRemoveFlag, postId)), null);

            return(JsonConvert.DeserializeObject <FlagResponse>(result.ResultJson));
        }