public PartySetGameDataResult PartySetGameData(PartySetGameDataRequest request)
        {
            PartyMember partyMember;

            if (TryGetUserPartyMember(out partyMember) && partyMember.IsOwner)
            {
                var party = _partyRepository.FindByPartyIdAsync(partyMember.PartyId).Result;
                if (party != null)
                {
                    party.GameData = request.GameData;
                    _partyRepository.UpdateAsync(party).Wait();
                }
            }

            return(new PartySetGameDataResult
            {
                Result = new ServiceResult <bool>
                {
                    Data = true
                }
            });
        }
Ejemplo n.º 2
0
        public PartySetGameDataResult PartySetGameData(PartySetGameDataRequest request)
        {
            PartyMember partyMember;
            if (TryGetUserPartyMember(out partyMember) && partyMember.IsOwner)
            {
                var party = _partyRepository.FindByPartyIdAsync(partyMember.PartyId).Result;
                if (party != null)
                {
                    party.GameData = request.GameData;
                    _partyRepository.UpdateAsync(party).Wait();
                }
            }

            return new PartySetGameDataResult
            {
                Result = new ServiceResult<bool>
                {
                    Data = true
                }
            };
        }
Ejemplo n.º 3
0
 public PartySetGameDataResult PartySetGameData(PartySetGameDataRequest request)
 {
     return new PartySetGameDataResult
     {
         Result = new ServiceResult<bool>
         {
             Data = true
         }
     };
 }