Пример #1
0
        public bool Deserialize(string language, JSON_TrophyCategoryParam json)
        {
            bool flag = this.Deserialize(json);

            this.localizeFields(language);
            return(flag);
        }
Пример #2
0
 public bool Deserialize(JSON_TrophyCategoryParam json)
 {
     if (json == null)
     {
         return(false);
     }
     this.iname       = json.iname;
     this.hash_code   = this.iname.GetHashCode();
     this.is_not_pull = json.is_not_pull == 1;
     this.days        = json.day_reset;
     this.beginner    = json.bgnr;
     this.begin_at.Set(json.begin_at, DateTime.MinValue);
     this.end_at.Set(json.end_at, DateTime.MaxValue);
     this.category     = json.category == 0 ? TrophyCategorys.Other : (TrophyCategorys)json.category;
     this.linked_quest = json.linked_quest;
     return(true);
 }