-
Notifications
You must be signed in to change notification settings - Fork 5
/
activity_details.go
48 lines (40 loc) · 1.41 KB
/
activity_details.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
package profile
import (
"time"
"github.com/getyoti/yoti-go-sdk/v3/extra"
)
// ActivityDetails represents the result of an activity between a user and the application.
type ActivityDetails struct {
UserProfile UserProfile
rememberMeID string
parentRememberMeID string
timestamp time.Time
receiptID string
ApplicationProfile ApplicationProfile
extraData *extra.Data
}
// RememberMeID is a unique, stable identifier for a user in the context
// of an application. You can use it to identify returning users.
// This value will be different for the same user in different applications.
func (a ActivityDetails) RememberMeID() string {
return a.rememberMeID
}
// ParentRememberMeID is a unique, stable identifier for a user in the
// context of an organisation. You can use it to identify returning users.
// This value is consistent for a given user across different applications
// belonging to a single organisation.
func (a ActivityDetails) ParentRememberMeID() string {
return a.parentRememberMeID
}
// Timestamp is the Time and date of the sharing activity
func (a ActivityDetails) Timestamp() time.Time {
return a.timestamp
}
// ReceiptID identifies a completed activity
func (a ActivityDetails) ReceiptID() string {
return a.receiptID
}
// ExtraData represents extra pieces information on the receipt
func (a ActivityDetails) ExtraData() *extra.Data {
return a.extraData
}