public GalleryChatPhoto(IProtoService protoService, object from, ChatPhoto photo, long messageId = 0) : base(protoService) { _from = from; _photo = photo; _messageId = messageId; }
public override void Read(BinaryReader reader) { this.id = reader.ReadInt32(); this.title = Serializers.String.read(reader); this.photo = Tl.Parse <ChatPhoto>(reader); this.participants_count = reader.ReadInt32(); this.date = reader.ReadInt32(); this.left = reader.ReadUInt32() == 0x997275b5; this.version = reader.ReadInt32(); }
public ChatConstructor(int id, string title, ChatPhoto photo, int participants_count, int date, bool left, int version) { this.id = id; this.title = title; this.photo = photo; this.participants_count = participants_count; this.date = date; this.left = left; this.version = version; }
void LoadIfl(ChatPhoto photo) { if (photo is ChatPhotoConstructor) { var flbig = (FileLocationConstructor)((ChatPhotoConstructor)photo).photo_big; var flsmall = (FileLocationConstructor)((ChatPhotoConstructor)photo).photo_small; ifl_large = new InputFileLocationConstructor(flbig.volume_id, flbig.local_id, flbig.secret); ifl_small = new InputFileLocationConstructor(flsmall.volume_id, flsmall.local_id, flsmall.secret); } }
// TODO WHEN IS IT SELF? public LC(int id, string firstName, string lastName, ChatPhoto photo) { ID = id; FirstName = firstName; LastName = lastName; Type = PeerType.Chat; if (photo != null) { LoadIfl(photo); } }
public override void Read(BinaryReader reader) { this.id = reader.ReadInt32(); this.access_hash = reader.ReadInt64(); this.title = Serializers.String.read(reader); this.address = Serializers.String.read(reader); this.venue = Serializers.String.read(reader); this.geo = Tl.Parse <GeoPoint>(reader); this.photo = Tl.Parse <ChatPhoto>(reader); this.participants_count = reader.ReadInt32(); this.date = reader.ReadInt32(); this.checked_in = reader.ReadUInt32() == 0x997275b5; this.version = reader.ReadInt32(); }
public GeoChatConstructor(int id, long access_hash, string title, string address, string venue, GeoPoint geo, ChatPhoto photo, int participants_count, int date, bool checked_in, int version) { this.id = id; this.access_hash = access_hash; this.title = title; this.address = address; this.venue = venue; this.geo = geo; this.photo = photo; this.participants_count = participants_count; this.date = date; this.checked_in = checked_in; this.version = version; }
public static Photo ToPhoto(this ChatPhoto chatPhoto) { return(new Photo(0, false, new PhotoSize[] { new PhotoSize("t", chatPhoto.Small, 160, 160), new PhotoSize("i", chatPhoto.Big, 640, 640) })); }
public ChatPhotosViewModel(IProtoService protoService, IEventAggregator aggregator, Chat chat, ChatPhoto photo) : base(protoService, aggregator) { _chat = chat; Items = new MvxObservableCollection <GalleryContent> { new GalleryChatPhoto(protoService, chat, photo, 0) }; SelectedItem = Items[0]; FirstItem = Items[0]; Initialize(photo.GetBig().Photo.Id, photo.GetSmall().Photo.Id); }
public GalleryChatPhoto(IProtoService protoService, ChatPhoto photo, string caption) : base(protoService) { _photo = photo; _caption = caption; }
public GalleryChatPhoto(IProtoService protoService, ChatPhoto photo) : base(protoService) { _photo = photo; }
public GalleryChatPhoto(IProtoService protoService, object from, ChatPhoto photo) : base(protoService) { _from = from; _photo = photo; }
public GalleryUserProfilePhoto(IProtoService protoService, User user, ChatPhoto photo) : base(protoService) { _user = user; _photo = photo; }