private void writeGroupDetails(DeviceGroup group)// throws IOException
        {
            TextSecureProtos.GroupDetails.Builder groupDetails = TextSecureProtos.GroupDetails.CreateBuilder();
            groupDetails.SetId(ByteString.CopyFrom(group.getId()));

            /*if (group.getName().HasValue)
            {
                groupDetails.SetName(group.getName().get());
            }

            if (group.getAvatar().HasValue)
            {
                TextSecureProtos.GroupDetails.Avatar.Builder avatarBuilder = TextSecureProtos.GroupDetails.Avatar.newBuilder();
                avatarBuilder.setContentType(group.getAvatar().get().getContentType());
                avatarBuilder.setLength((int)group.getAvatar().get().getLength());
                groupDetails.setAvatar(avatarBuilder);
            }

            groupDetails.AddRangeMembers(group.getMembers());

            byte[] serializedContactDetails = groupDetails.Build().ToByteArray();

            writeVarint32(serializedContactDetails.Length);
            output.write(serializedContactDetails);*/
            throw new NotImplementedException();
        }
 private void writeAvatarImage(DeviceGroup contact)
 {
     if (contact.getAvatar().HasValue)
     {
         //writeStream(contact.getAvatar().get().getInputStream());
     }
 }
 public void write(DeviceGroup group)
 {
     writeGroupDetails(group);
     writeAvatarImage(group);
 }
Example #4
0
 public void write(DeviceGroup group)
 {
     writeGroupDetails(group);
     writeAvatarImage(group);
 }