Add extra fields to vCard and format code
This commit is contained in:
+17
-3
@@ -9,9 +9,23 @@ import (
|
||||
)
|
||||
|
||||
type VCard struct {
|
||||
XMLName xml.Name `xml:"vcard-temp vCard"`
|
||||
Photo Photo `xml:"PHOTO"`
|
||||
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
|
||||
XMLName xml.Name `xml:"vcard-temp vCard"`
|
||||
FirstName string `xml:"FN"`
|
||||
LastName string `xml:"N>FAMILY"`
|
||||
GivenName string `xml:"N>GIVEN"`
|
||||
MiddleName string `xml:"N>MIDDLE"`
|
||||
Nickname string `xml:"NICKNAME"`
|
||||
URI string `xml:"URL"`
|
||||
Birthday string `xml:"BDAY"`
|
||||
OrgName string `xml:"ORG>ORGNAME"`
|
||||
OrgUnit string `xml:"ORG>ORGUNIT"`
|
||||
Title string `xml:"TITLE"`
|
||||
Role string `xml:"ROLE"`
|
||||
Description string `xml:"DESC"`
|
||||
Jid string `xml:"JABBERID"`
|
||||
Photo Photo `xml:"PHOTO"`
|
||||
Email string `xml:"EMAIL>USERID"`
|
||||
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
|
||||
}
|
||||
|
||||
type VCardUpdate struct {
|
||||
|
||||
Reference in New Issue
Block a user