public Video() { this.can_comment = 1; this.privacy_view = new List <string>(); this.privacy_comment = new List <string>(); this.likes = new Likes(); }
public void Read(BinaryReader reader) { int num1 = reader.ReadInt32(); this.vid = reader.ReadInt64(); this.owner_id = reader.ReadInt64(); this.title = reader.ReadString(); this.duration = reader.ReadInt32(); this.description = reader.ReadString(); this.date = reader.ReadInt32(); this.views = reader.ReadInt32(); this.image = reader.ReadString(); this.image_big = reader.ReadString(); this.image_medium = reader.ReadString(); this.access_key = reader.ReadString(); this.link = reader.ReadString(); this.files = reader.ReadDictionary(); this.comments = reader.ReadInt32(); this.player = reader.ReadString(); int num2 = 2; if (num1 >= num2) { string g = reader.ReadString(); if (!string.IsNullOrEmpty(g)) { this.guid = new Guid(g); } } int num3 = 3; if (num1 >= num3) { this.can_edit = reader.ReadInt32(); this.can_repost = reader.ReadInt32(); this.can_comment = reader.ReadInt32(); } int num4 = 4; if (num1 >= num4) { this.live = reader.ReadInt32(); this.watched = reader.ReadInt32(); } int num5 = 5; if (num1 >= num5) { this.likes = reader.ReadGeneric <Likes>(); } int num6 = 6; if (num1 < num6) { return; } this.can_add = reader.ReadInt32(); }