1// Copyright © 2016 Aaron Longwell 2// 3// Use of this source code is governed by an MIT licese. 4// Details in the LICENSE file. 5 6package trello 7 8// Attachment represent the attachments of cards. This is a nested resource of Card. 9// https://developers.trello.com/reference/#attachments 10type Attachment struct { 11 ID string `json:"id"` 12 Name string `json:"name"` 13 Pos float32 `json:"pos"` 14 Bytes int `json:"int"` 15 Date string `json:"date"` 16 EdgeColor string `json:"edgeColor"` 17 IDMember string `json:"idMember"` 18 IsUpload bool `json:"isUpload"` 19 MimeType string `json:"mimeType"` 20 Previews []AttachmentPreview `json:"previews"` 21 URL string `json:"url"` 22} 23 24// AttachmentPreview is a nested attribute of Attachment. 25type AttachmentPreview struct { 26 ID string `json:"_id"` 27 URL string `json:"url"` 28 Width int `json:"width"` 29 Height int `json:"height"` 30 Bytes int `json:"bytes"` 31 Scaled bool `json:"scaled"` 32} 33