insightly-api
Diff Revisions
9
vs
10
for /trunk/Insightly/Contract/Contact.cs
|
@@ -1,5 +1,6 @@ |
1 |
1 |
|
using System; |
2 |
2 |
|
using System.Collections.Generic; |
|
3 |
+ |
using System.ComponentModel; |
3 |
4 |
|
using System.Runtime.Serialization; |
4 |
5 |
|
|
5 |
6 |
|
namespace TS.Insightly.API.Contract |
|
@@ -12,6 +13,37 @@ |
12 |
13 |
|
public class Contact |
13 |
14 |
|
{ |
14 |
15 |
|
/// <summary> |
|
16 |
+ |
/// Values for the VISIBLE_TO field, use the enum description. |
|
17 |
+ |
/// <see cref="Contact.VISIBLE_TO"/> |
|
18 |
+ |
/// </summary> |
|
19 |
+ |
public enum VisibleToOption |
|
20 |
+ |
{ |
|
21 |
+ |
/// <summary> |
|
22 |
+ |
/// Visible to Everyone. |
|
23 |
+ |
/// </summary> |
|
24 |
+ |
[Description("Everyone")] |
|
25 |
+ |
Everyone, |
|
26 |
+ |
|
|
27 |
+ |
/// <summary> |
|
28 |
+ |
/// Visible to Owner. |
|
29 |
+ |
/// </summary> |
|
30 |
+ |
[Description("Owner")] |
|
31 |
+ |
Owner, |
|
32 |
+ |
|
|
33 |
+ |
/// <summary> |
|
34 |
+ |
/// Visible to Team. |
|
35 |
+ |
/// </summary> |
|
36 |
+ |
[Description("Team")] |
|
37 |
+ |
Team, |
|
38 |
+ |
|
|
39 |
+ |
/// <summary> |
|
40 |
+ |
/// Visible to individuals. |
|
41 |
+ |
/// </summary> |
|
42 |
+ |
[Description("Individuals")] |
|
43 |
+ |
Individuals |
|
44 |
+ |
} |
|
45 |
+ |
|
|
46 |
+ |
/// <summary> |
15 |
47 |
|
/// Gets or sets the contact unique identifier. |
16 |
48 |
|
/// Note this is the insightly contact id, not the Id |
17 |
49 |
|
/// that is shown in the web browser for a contact record. |
|
@@ -93,10 +125,12 @@ |
93 |
125 |
|
|
94 |
126 |
|
/// <summary> |
95 |
127 |
|
/// Gets or sets visible to. |
|
128 |
+ |
/// See the VisibleToOption enumerations. |
96 |
129 |
|
/// </summary> |
97 |
130 |
|
/// <value> |
98 |
131 |
|
/// The visible to. |
99 |
132 |
|
/// </value> |
|
133 |
+ |
/// <seealso cref="VisibleToOption"/> |
100 |
134 |
|
[DataMember] |
101 |
135 |
|
public string VISIBLE_TO { get; set; } |
102 |
136 |
|
|
|
@@ -111,6 +145,7 @@ |
111 |
145 |
|
|
112 |
146 |
|
/// <summary> |
113 |
147 |
|
/// Gets or sets the user ids the contact is visible to. |
|
148 |
+ |
/// Comma separated list of User Ids if <see cref="VISIBLE_TO"/> is <see cref="VisibleToOption.Individuals"/>. |
114 |
149 |
|
/// </summary> |
115 |
150 |
|
/// <value> |
116 |
151 |
|
/// The visible user ids. |