mirror of https://github.com/matrix-org/gomatrix
Added tags.go
This commit is contained in:
parent
54b415d5fa
commit
1ec97e4eae
|
@ -0,0 +1,12 @@
|
||||||
|
package gomatrix
|
||||||
|
|
||||||
|
// Tags is based on the Room Tagging feature as described in https://matrix.org/docs/spec/client_server/r0.2.0.html#room-tagging
|
||||||
|
// Tag contains the data for a Tag which can be referenced by the Tag name
|
||||||
|
type Tag struct {
|
||||||
|
Tags map[string]TagProperties `json:"tags"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// TagProperties contains the properties of an MTag
|
||||||
|
type TagProperties struct {
|
||||||
|
Order float32 `json:"order,omitempty"` // Empty values must be neglected
|
||||||
|
}
|
Loading…
Reference in New Issue