コード例 #1
0
 public SignalServiceSticker(byte[] packId, byte[] packKey, int stickerId, SignalServiceAttachment attachment)
 {
     PackId     = packId;
     PackKey    = packKey;
     StickerId  = stickerId;
     Attachment = attachment;
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 public SignalServiceQuotedAttachment(string contentType, string filename, SignalServiceAttachment thumbnail)
 {
     ContentType = contentType;
     FileName    = filename;
     Thumbnail   = thumbnail;
 }
コード例 #4
0
 public SignalServiceDataMessage(long timestamp, SignalServiceAttachment attachment, string body) :
     this(timestamp, new List <SignalServiceAttachment>() { attachment }, body)
 {
 }
コード例 #5
0
 public Builder withAttachment(SignalServiceAttachment attachment)
 {
     attachments.Add(attachment);
     return(this);
 }
コード例 #6
0
 public Builder withAvatar(SignalServiceAttachment avatar)
 {
     this.avatar = avatar;
     return(this);
 }