mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-06 12:21:21 -05:00
29 lines
654 B
Go
29 lines
654 B
Go
//go:build groupware_examples
|
|
|
|
package jmap
|
|
|
|
import c "github.com/opencloud-eu/opencloud/pkg/jscontact"
|
|
|
|
func JSContactExample() {
|
|
SerializeExamples(JSContactExemplarInstance)
|
|
//Output:
|
|
}
|
|
|
|
type JSContactExemplar struct {
|
|
}
|
|
|
|
var JSContactExemplarInstance = JSContactExemplar{}
|
|
|
|
func (e JSContactExemplar) Name() c.Name {
|
|
return c.Name{
|
|
Type: c.NameType,
|
|
Components: []c.NameComponent{
|
|
{Type: c.NameComponentType, Value: "Drummer", Kind: c.NameComponentKindGiven},
|
|
{Type: c.NameComponentType, Value: "Camina", Kind: c.NameComponentKindGiven},
|
|
},
|
|
IsOrdered: true,
|
|
DefaultSeparator: ", ",
|
|
Full: "Camina Drummer",
|
|
}
|
|
}
|