コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: VKUser.cs プロジェクト: kelleygunner/arfighting
        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;
        }