-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotesviewentry.go
More file actions
128 lines (102 loc) · 4.63 KB
/
notesviewentry.go
File metadata and controls
128 lines (102 loc) · 4.63 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_NOTESVIEWENTRY_CLASS_2925.html */
package domigo
import (
ole "github.com/go-ole/go-ole"
)
type NotesViewEntry struct {
NotesStruct
}
func newNotesViewEntry(dispatchPtr *ole.IDispatch) NotesViewEntry {
return NotesViewEntry{newNotesStruct(dispatchPtr)}
}
/* --------------------------------- Properties --------------------------------- */
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_CHILDCOUNT_PROPERTY_8963.html */
func (v NotesViewEntry) ChildCount() (Long, error) {
return getComProperty[Long](v, "ChildCount")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_COLUMNINDENTLEVEL_PROPERTY_VIEWENTRY.html */
func (v NotesViewEntry) ColumnIndentLevel() (Long, error) {
return getComProperty[Long](v, "ColumnIndentLevel")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_COLUMNVALUES_PROPERTY_5887.html */
func (v NotesViewEntry) ColumnValues() ([]any, error) {
return getComAnyArrayProperty(v, "ColumnValues")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_DESCENDANTCOUNT_PROPERTY_2777.html */
func (v NotesViewEntry) DescendantCount() (Long, error) {
return getComProperty[Long](v, "DescendantCount")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_DOCUMENT_PROPERTY_7936.html */
func (v NotesViewEntry) Document() (NotesDocument, error) {
return getComObjectProperty(v, newNotesDocument, "Document")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_FTSEARCHSCORE_PROPERTY_2767.html */
func (v NotesViewEntry) FTSearchScore() (Long, error) {
return getComProperty[Long](v, "FTSearchScore")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_INDENTLEVEL_PROPERTY_8244.html */
func (v NotesViewEntry) IndentLevel() (Long, error) {
return getComProperty[Long](v, "IndentLevel")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_ISCATEGORY_PROPERTY_9511.html */
func (v NotesViewEntry) IsCategory() (Boolean, error) {
return getComProperty[Boolean](v, "IsCategory")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_ISCONFLICT_PROPERTY_1204.html */
func (v NotesViewEntry) IsConflict() (Boolean, error) {
return getComProperty[Boolean](v, "IsConflict")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_ISDOCUMENT_PROPERTY_6058.html */
func (v NotesViewEntry) IsDocument() (Boolean, error) {
return getComProperty[Boolean](v, "IsDocument")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_ISTOTAL_PROPERTY_9664.html */
func (v NotesViewEntry) IsTotal() (Boolean, error) {
return getComProperty[Boolean](v, "IsTotal")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_ISVALID_PROPERTY_2176.html */
func (v NotesViewEntry) IsValid() (Boolean, error) {
return getComProperty[Boolean](v, "IsValid")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_NOTEID_PROPERTY_9904.html */
func (v NotesViewEntry) NoteID() (String, error) {
return getComProperty[String](v, "NoteID")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_PARENT_PROPERTY_3044.html */
func (v NotesViewEntry) Parent() (NotesView, error) {
return getComObjectProperty(v, newNotesView, "Parent")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_SIBLINGCOUNT_PROPERTY_5642.html */
func (v NotesViewEntry) SiblingCount() (Long, error) {
return getComProperty[Long](v, "SiblingCount")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_UNIVERSALID_PROPERTY_8372.html */
func (v NotesViewEntry) UniversalID() (String, error) {
return getComProperty[String](v, "UniversalID")
}
/* --------------------------------- Methods ------------------------------------ */
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_GETPOSITION_METHOD_8121.html */
func (v NotesViewEntry) GetPosition(separator String) (String, error) {
return callComMethod[String](v, "GetPosition", separator)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_GETREAD_METHOD_ENTRY.html */
type notesViewEntryGetReadParams struct {
username *String
}
type notesViewEntryGetReadParam func(*notesViewEntryGetReadParams)
func WithNotesViewEntryGetReadUsername(username String) notesViewEntryGetReadParam {
return func(c *notesViewEntryGetReadParams) {
c.username = &username
}
}
func (v NotesViewEntry) GetRead(params ...notesViewEntryGetReadParam) (Boolean, error) {
paramsStruct := ¬esViewEntryGetReadParams{}
paramsOrdered := []interface{}{}
for _, p := range params {
p(paramsStruct)
}
if paramsStruct.username != nil {
paramsOrdered = append(paramsOrdered, *paramsStruct.username)
}
return callComMethod[Boolean](v, "GetRead", paramsOrdered...)
}