Esempio n. 1
0
        public override async Task <bool> AcceptJoinRequest(string partyId, string memberId)
        {
            if (!GameService.IsAuthenticated())
            {
                throw new GameServiceException("GameService Not Available").LogException <Party>(DebugLocation.Party,
                                                                                                 "AcceptJoinRequest");
            }
            if (string.IsNullOrEmpty(partyId))
            {
                throw new GameServiceException("partyId Cant Be EmptyOrNull").LogException <Party>(DebugLocation.Party,
                                                                                                   "AcceptJoinRequest");
            }
            if (string.IsNullOrEmpty(memberId))
            {
                throw new GameServiceException("memberId Cant Be EmptyOrNull").LogException <Party>(DebugLocation.Party,
                                                                                                    "AcceptJoinRequest");
            }

            return(await ApiRequest.AcceptJoinToParty(partyId, memberId));
        }