Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
67 lines (63 sloc)
1.34 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type List struct { | |
| version Version | |
| subLists nullable [&List] | |
| posts nullable [&Post] | |
| } | |
| type Post struct { | |
| version Version | |
| update RFC3339 | |
| channel nullable string | |
| history [&Content] #Includes first. | |
| content &Content | |
| operations [Operation] | |
| } | |
| type Content enum { | |
| | ImageContent | |
| | VideoContent | |
| | AudioContent | |
| } | |
| type ImageContent struct { | |
| version Version | |
| mime RFC6838 | |
| image Link | |
| } | |
| type VideoContent struct { | |
| version Version | |
| mime RFC6381 | |
| video Link | |
| } | |
| type AudioContent struct { | |
| version Version | |
| mime RFC6381 | |
| audio Link | |
| } | |
| type Operation enum { | |
| | LikeOperation | |
| } | |
| type LikeOperation struct { | |
| # Operation must have the`value` field to provide display information and feedback field to privde feedback information | |
| # If Operation doesn't need to provide information, Set value to null | |
| # If Operation doesn't need to privide feedback, Set feedback to null | |
| version Version | |
| value int | |
| feedback LikeFeedBack | |
| } | |
| type LikeFeedBack struct { | |
| like GenericLikeFeedBack | |
| revokeLike GenericLikeFeedBack | |
| } | |
| type GenericLikeFeedBack struct { | |
| type LikeFeedBackType | |
| content &Content | |
| } | |
| type LikeFeedBackType enum{ | |
| | Like | |
| | RevokeLike | |
| } | |
| type RFC3339 representation struct | |
| type Version struct { | |
| name string | |
| version float | |
| } representation stringjoin { | |
| join "/" | |
| } |