using System;
using LitJson;

public class FriendApply : HeaderData
{
	public uint id;

	public int viewerId;

	public string name;

	public string countryCode;

	public int rank;

	public long emblemId;

	public int degreeId;

	public DateTime lastPlayTime;

	public DateTime applyedTime;

	public int MissionType { get; private set; }

	public FriendApply(JsonData data)
	{
		id = (uint)data["id"].ToLong();
		viewerId = data["viewer_id"].ToInt();
		name = (string)data["name"];
		countryCode = (string)data["country_code"];
		rank = data["rank"].ToInt();
		emblemId = data["emblem_id"].ToLong();
		degreeId = data["degree_id"].ToInt();
		lastPlayTime = DateTime.Parse(data["last_play_time"].ToString());
		applyedTime = DateTime.Parse(data["create_time"].ToString());
		if (data.Keys.Contains("mission_type"))
		{
			MissionType = data["mission_type"].ToInt();
		}
	}
}
