|
| 1 | +package org.gitlab4j.api.models; |
| 2 | + |
| 3 | +import javax.xml.bind.annotation.XmlAccessType; |
| 4 | +import javax.xml.bind.annotation.XmlAccessorType; |
| 5 | +import javax.xml.bind.annotation.XmlRootElement; |
| 6 | + |
| 7 | +import org.gitlab4j.api.utils.JacksonJson; |
| 8 | + |
| 9 | +@XmlRootElement |
| 10 | +@XmlAccessorType(XmlAccessType.FIELD) |
| 11 | +public class WikiAttachment { |
| 12 | + |
| 13 | + public static class Link { |
| 14 | + |
| 15 | + private String url; |
| 16 | + private String markdown; |
| 17 | + |
| 18 | + public String getUrl() { |
| 19 | + return url; |
| 20 | + } |
| 21 | + |
| 22 | + public void setUrl(String url) { |
| 23 | + this.url = url; |
| 24 | + } |
| 25 | + |
| 26 | + public String getMarkdown() { |
| 27 | + return markdown; |
| 28 | + } |
| 29 | + |
| 30 | + public void setMarkdown(String markdown) { |
| 31 | + this.markdown = markdown; |
| 32 | + } |
| 33 | + |
| 34 | + @Override |
| 35 | + public String toString() { |
| 36 | + return (JacksonJson.toJsonString(this)); |
| 37 | + } |
| 38 | + } |
| 39 | + |
| 40 | + |
| 41 | + private String fileName; |
| 42 | + private String filePath; |
| 43 | + private String branch; |
| 44 | + private Link link; |
| 45 | + |
| 46 | + public String getFileName() { |
| 47 | + return fileName; |
| 48 | + } |
| 49 | + |
| 50 | + public void setFileName(String fileName) { |
| 51 | + this.fileName = fileName; |
| 52 | + } |
| 53 | + |
| 54 | + public String getFilePath() { |
| 55 | + return filePath; |
| 56 | + } |
| 57 | + |
| 58 | + public void setFilePath(String filePath) { |
| 59 | + this.filePath = filePath; |
| 60 | + } |
| 61 | + |
| 62 | + public String getBranch() { |
| 63 | + return branch; |
| 64 | + } |
| 65 | + |
| 66 | + public void setBranch(String branch) { |
| 67 | + this.branch = branch; |
| 68 | + } |
| 69 | + |
| 70 | + public Link getLink() { |
| 71 | + return link; |
| 72 | + } |
| 73 | + |
| 74 | + public void setLink(Link link) { |
| 75 | + this.link = link; |
| 76 | + } |
| 77 | + |
| 78 | + @Override |
| 79 | + public String toString() { |
| 80 | + return (JacksonJson.toJsonString(this)); |
| 81 | + } |
| 82 | +} |
0 commit comments