Example #1
0
        public override async Task <PartyData> CreateParty(SocialOptions.PartyOption option)
        {
            if (!GameService.IsAuthenticated())
            {
                throw new GameServiceException("GameService Not Available").LogException <Party>(DebugLocation.Party,
                                                                                                 "CreateParty");
            }
            if (option == null)
            {
                throw new GameServiceException("option Cant Be Null").LogException <Party>(DebugLocation.Party,
                                                                                           "CreateParty");
            }

            return(await ApiRequest.CreateParty(option));
        }
Example #2
0
        public override async Task <PartyData> EditParty(string partyId, SocialOptions.PartyOption option)
        {
            if (!GameService.IsAuthenticated())
            {
                throw new GameServiceException("GameService Not Available").LogException <Party>(DebugLocation.Party,
                                                                                                 "EditParty");
            }
            if (string.IsNullOrEmpty(partyId))
            {
                throw new GameServiceException("partyId Cant Be EmptyOrNull").LogException <Party>(DebugLocation.Party,
                                                                                                   "EditParty");
            }
            if (option == null)
            {
                throw new GameServiceException("option Cant Be Null").LogException <Party>(DebugLocation.Party,
                                                                                           "EditParty");
            }

            return(await ApiRequest.EditParty(partyId, option));
        }