next-eeze.git

ref: abd06c5473a24bf0ea576063ebe3a10a0812c188

password/next.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
package password

type NextPassword struct {
	Id           string
	Label        string
	Username     string
	Password     string
	Url          string
	Notes        string
	CustomFields string
	Status       int
	StatusCode   string
	Hash         string
	Folder       string
	Revision     string
	Share        *string
	Shared       bool
	CseType      string
	CseKey       string
	SseType      string
	Client       string
	Hidden       bool
	Trashed      bool
	Favorite     bool
	Editable     bool
	Edited       int
	Created      int
	Updated      int
}

func (n NextPassword) ToBarePassword() BarePassword {
	converted := BarePassword{
		Label:    n.Label,
		Username: n.Username,
		Password: n.Password,
		Url:      n.Url,
		Notes:    n.Notes,
	}
	return converted
}