-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathattendee.go
68 lines (53 loc) · 962 Bytes
/
attendee.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package ics
import (
"fmt"
)
type Attendee struct {
name string
email string
status string
role string
cutype string
}
func NewAttendee() *Attendee {
a := new(Attendee)
return a
}
func (a *Attendee) SetName(n string) *Attendee {
a.name = n
return a
}
func (a *Attendee) GetName() string {
return a.name
}
func (a *Attendee) SetEmail(e string) *Attendee {
a.email = e
return a
}
func (a *Attendee) GetEmail() string {
return a.email
}
func (a *Attendee) SetStatus(s string) *Attendee {
a.status = s
return a
}
func (a *Attendee) GetStatus() string {
return a.status
}
func (a *Attendee) SetRole(r string) *Attendee {
a.role = r
return a
}
func (a *Attendee) GetRole() string {
return a.role
}
func (a *Attendee) SetType(ct string) *Attendee {
a.cutype = ct
return a
}
func (a *Attendee) GetType() string {
return a.cutype
}
func (a *Attendee) String() string {
return fmt.Sprintf("%s with email %s", a.name, a.email)
}