CaveTube.CaveTubeClient.Message.Message C# (CSharp) Method

Message() private method

private Message ( dynamic json ) : System
json dynamic
return System
		internal Message(dynamic json) {
			this.Number = json.comment_num ?? 0;
			this.ListenerId = json.user_id ?? String.Empty;
			this.Name = json.name ?? String.Empty;
			this.Comment = json.message != null ? WebUtility.HtmlDecode(json.message.ToObject<String>()) : String.Empty;
			this.IsAuth = json.auth ?? false;
			this.IsBan = json.is_ban ?? false;
			this.IsHide = json.is_hide ?? false;
			this.PostTime = json.time != null ? DateExtends.ToDateTime(json.time.ToObject<Double>()) : new DateTime();
		}