Merge branch 'Adding_Tags_feature' of https://github.com/SUMUKHA-PK/gomatrix into Adding_Tags_feature

This commit is contained in:
SUMUKHA-PK 2019-03-26 22:07:30 +05:30
commit 4e14b28365
1 changed files with 3 additions and 2 deletions

View File

@ -14,12 +14,13 @@
package gomatrix package gomatrix
// Tag contains the data for a Tag which can be referenced by the Tag name // Tag contains the data for an m.tag message type
// https://matrix.org/docs/spec/client_server/r0.4.0.html#m-tag
type Tag struct { type Tag struct {
Tags map[string]TagProperties `json:"tags"` Tags map[string]TagProperties `json:"tags"`
} }
// TagProperties contains the properties of an MTag // TagProperties contains the properties of a Tag
type TagProperties struct { type TagProperties struct {
Order float32 `json:"order,omitempty"` // Empty values must be neglected Order float32 `json:"order,omitempty"` // Empty values must be neglected
} }