public void Deserialize(ReqRankMatchReward.Response res)
 {
     this.mScheduleId = res.schedule_id;
     this.mScore      = res.score;
     this.mRank       = res.rank;
     this.mClass      = (RankMatchClass)res.type;
 }
Beispiel #2
0
 public bool Deserialize(JSON_VersusRankClassParam json)
 {
     if (json == null)
     {
         return(false);
     }
     this.mScheduleId       = json.schedule_id;
     this.mClass            = (RankMatchClass)json.type;
     this.mUpPoint          = json.up_pt;
     this.mDownPoint        = json.down_pt;
     this.mDownLosingStreak = json.down_losing_streak;
     this.mRewardId         = json.reward_id;
     this.mWinPointMax      = json.win_pt_max;
     this.mWinPointMin      = json.win_pt_min;
     this.mLosePointMax     = json.lose_pt_max;
     this.mLosePointMin     = json.lose_pt_min;
     return(true);
 }