Exemple #1
0
 public SignalServiceSticker(byte[] packId, byte[] packKey, int stickerId, SignalServiceAttachment attachment)
 {
     PackId     = packId;
     PackKey    = packKey;
     StickerId  = stickerId;
     Attachment = attachment;
 }
 /// <summary>
 /// Construct a group context.
 /// </summary>
 /// <param name="type">The group message type (update, deliver, quit).</param>
 /// <param name="groupId">The group ID.</param>
 /// <param name="name">The group title.</param>
 /// <param name="members">The group membership list.</param>
 /// <param name="avatar">The group avatar icon.</param>
 public SignalServiceGroup(Type type, byte[] groupId, String name,
                           IList <String> members,
                           SignalServiceAttachment avatar)
 {
     this.type    = type;
     this.groupId = groupId;
     this.name    = new May <String>(name);
     this.members = new May <IList <String> >(members);
     this.avatar  = new May <SignalServiceAttachment>(avatar);
 }
Exemple #3
0
 public SignalServiceQuotedAttachment(string contentType, string filename, SignalServiceAttachment thumbnail)
 {
     ContentType = contentType;
     FileName    = filename;
     Thumbnail   = thumbnail;
 }
Exemple #4
0
 public SignalServiceDataMessage(long timestamp, SignalServiceAttachment attachment, string body) :
     this(timestamp, new List <SignalServiceAttachment>() { attachment }, body)
 {
 }
Exemple #5
0
 public Builder withAttachment(SignalServiceAttachment attachment)
 {
     attachments.Add(attachment);
     return(this);
 }
 public Builder withAvatar(SignalServiceAttachment avatar)
 {
     this.avatar = avatar;
     return(this);
 }