public static VKUserStatus Deserialize(object UserStatus) { object time, platform; var stat_ders = new VKUserStatus(); var data = (Dictionary <string, object>)UserStatus; if (data.TryGetValue("time", out time)) { stat_ders.time = (long)time; } if (data.TryGetValue("platform", out platform)) { stat_ders.platform = (int)(long)platform; } return(stat_ders); }
public static VKUserStatus Deserialize(object UserStatus) { object time,platform; var stat_ders=new VKUserStatus(); var data=(Dictionary<string,object>)UserStatus; if(data.TryGetValue("time",out time)) stat_ders.time=(long)time; if(data.TryGetValue("platform",out platform)) stat_ders.platform=(int)(long)platform; return stat_ders; }