Ejemplo n.º 1
0
 public String toAttachmentsString() {
   ArrayList<CharSequence> attachments = new ArrayList<CharSequence>();
   for (VKApiAttachment attach : this) {
     attachments.add(attach.toAttachmentString());
   }
   return VKStringJoiner.join(attachments, ",");
 }
Ejemplo n.º 2
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(size());
   for (VKApiAttachment attachment : this) {
     dest.writeString(attachment.getType());
     dest.writeParcelable(attachment, 0);
   }
 }