telephone.go 553B

12345678910111213141516171819202122232425262728
  1. package vcard
  2. const (
  3. TelephoneTypePref = "PREF"
  4. TelephoneTypeWork = "WORK"
  5. TelephoneTypeHome = "HOME"
  6. TelephoneTypeVoice = "VOICE"
  7. TelephoneTypeFax = "FAX"
  8. TelephoneTypeMsg = "MSG"
  9. TelephoneTypeCell = "CELL"
  10. TelephoneTypePager = "PAGER"
  11. TelephoneTypeBBS = "BBS"
  12. TelephoneTypeModem = "MODEM"
  13. TelephoneTypeCar = "CAR"
  14. TelephoneTypeISDN = "ISDN"
  15. TelephoneTypeVideo = "VIDEO"
  16. )
  17. type Telephone struct {
  18. Type string
  19. Number string
  20. }
  21. func telephoneFromString(s string) (*Telephone, error) {
  22. t := Telephone{}
  23. return &t, nil
  24. }