mirror of https://github.com/matrix-org/gomatrix
add comments
This commit is contained in:
parent
ace302431c
commit
759911797e
|
@ -86,6 +86,7 @@ type HTMLMessage struct {
|
||||||
Format string `json:"format"`
|
Format string `json:"format"`
|
||||||
FormattedBody string `json:"formatted_body"`
|
FormattedBody string `json:"formatted_body"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// An FileMessage is the contents of a MATRIX File upload
|
// An FileMessage is the contents of a MATRIX File upload
|
||||||
type FileMessage struct {
|
type FileMessage struct {
|
||||||
Body string `json:"body"`
|
Body string `json:"body"`
|
||||||
|
@ -94,6 +95,7 @@ type FileMessage struct {
|
||||||
Info FileInfo `json:"info"`
|
Info FileInfo `json:"info"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FileInfo contains information about a file
|
||||||
type FileInfo struct {
|
type FileInfo struct {
|
||||||
MimeType string `json:"mimetype"`
|
MimeType string `json:"mimetype"`
|
||||||
Size int64 `json:size"`
|
Size int64 `json:size"`
|
||||||
|
|
Loading…
Reference in New Issue