コード例 #1
0
ファイル: WcfService.cs プロジェクト: huoxudong125/wcf
        // This operation is called by the Mahjong async scenario
        public MahojongTypes.ResultObject <IEnumerable <MahojongTypes.UserGamePlay> > UserGamePlayGetList(string gameKey, string keys)
        {
            MahojongTypes.ResultObject <IEnumerable <MahojongTypes.UserGamePlay> > result = new MahojongTypes.ResultObject <IEnumerable <MahojongTypes.UserGamePlay> >();
            result.ErrorCode      = (int)MahojongTypes.ErrorCode.Ok;
            result.ErrorMessage   = MahojongTypes.ErrorMessage.GetErrorDescription((MahojongTypes.ErrorCode)result.ErrorCode);
            result.HttpStatusCode = HttpStatusCode.OK;

            MahojongTypes.UserGamePlay gameData = new MahojongTypes.UserGamePlay();
            gameData.GameKey   = "This is the GameKey property.";
            gameData.Key       = "This is the Key property.";
            gameData.TimeStamp = "This is the TimeStamp property.";
            gameData.UserId    = "This is the UserId property.";
            gameData.Value     = "This is the Value property.";

            result.Result = new List <MahojongTypes.UserGamePlay>()
            {
                gameData
            };
            return(result);
        }
コード例 #2
0
ファイル: WcfService.cs プロジェクト: huoxudong125/wcf
 public MahojongTypes.ResultObject <string> UserGetAuthToken(string liveId)
 {
     MahojongTypes.ResultObject <string> result = new MahojongTypes.ResultObject <string>();
     result.Result = "Received request from the client.";
     return(result);
 }