Menu

[r123]: / trunk / GoogleAPI / src / extensions / gdatanametable.cs  Maximize  Restore  History

Download this file

327 lines (292 with data), 15.8 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
/* Copyright (c) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#region Using directives
using System;
using System.Xml;
using System.IO;
using Google.GData.Client;
#endregion
//////////////////////////////////////////////////////////////////////
// <summary>GDataParserNameTable</summary>
//////////////////////////////////////////////////////////////////////
namespace Google.GData.Extensions
{
/// <summary>
/// Subclass of the nametable, has the extensions for the GNamespace
/// </summary>
public class GDataParserNameTable : BaseNameTable
{
/// <summary>the google calendar namespace</summary>
public const string NSGCal = "http://schemas.google.com/gCal/2005";
/// <summary>the google calendar prefix</summary>
public const string gCalPrefix = "gCal";
/// <summary>
/// the starting string to define contacts relationship values
/// </summary>
public const string gContactsRel = "http://schemas.google.com/contacts/2008/rel";
/// <summary>
/// a relationship to a photo
/// </summary>
public const string ServicePhoto = gContactsRel + "#photo";
/// <summary>the event prefix </summary>
public const string Event = gNamespacePrefix + "event";
#region element strings
/// <summary> timezone indicator on the feedlevel</summary>
public const string XmlTimeZoneElement = "timezone";
/// <summary>static string for parsing</summary>
public const string XmlWhenElement = "when";
/// <summary>static string for parsing</summary>
public const string XmlWhereElement = "where";
/// <summary>static string for parsing</summary>
public const string XmlWhoElement = "who";
/// <summary>static string for parsing</summary>
public const string XmlEntryLinkElement = "entryLink";
/// <summary>static string for parsing</summary>
public const string XmlFeedLinkElement = "feedLink";
/// <summary>static string for parsing</summary>
public const string XmlEventStatusElement = "eventStatus";
/// <summary>static string for parsing</summary>
public const string XmlVisibilityElement = "visibility";
/// <summary>static string for parsing</summary>
public const string XmlTransparencyElement = "transparency";
/// <summary>static string for parsing</summary>
public const string XmlAttendeeTypeElement = "attendeeType";
/// <summary>static string for parsing</summary>
public const string XmlAttendeeStatusElement = "attendeeStatus";
/// <summary>static string for parsing</summary>
public const string XmlRecurrenceElement = "recurrence";
/// <summary>static string for parsing</summary>
public const string XmlRecurrenceExceptionElement = "recurrenceException";
/// <summary>static string for parsing</summary>
public const string XmlOriginalEventElement = "originalEvent";
/// <summary>static string for parsing</summary>
public const string XmlReminderElement = "reminder";
/// <summary>static string for parsing</summary>
public const string XmlCommentsElement = "comments";
/// <summary>static string for parsing the color element in a calendar</summary>
public const string XmlColorElement = "color";
/// <summary>static string for parsing the selected element in a calendar</summary>
public const string XmlSelectedElement = "selected";
/// <summary>static string for parsing the ACL element in a calendar</summary>
public const string XmlAccessLevelElement = "accesslevel";
/// <summary>static string for parsing the hidden element in a calendar</summary>
public const string XmlHiddenElement = "hidden";
/// <summary>static string for parsing the email element in a contact</summary>
public const string XmlEmailElement = "email";
/// <summary>static string for parsing the IM element in a contact</summary>
public const string XmlIMElement = "im";
/// <summary>static string for parsing the phonenumber element in a contact</summary>
public const string XmlPhoneNumberElement = "phoneNumber";
/// <summary>static string for parsing the postalAddress element in a contact</summary>
public const string XmlPostalAddressElement = "postalAddress";
/// <summary>static string for parsing the Organization element in a contact</summary>
public const string XmlOrganizationElement = "organization";
/// <summary>static string for parsing the deleted element in a contacts</summary>
public const string XmlDeletedElement = "deleted";
/// <summary>static string for parsing the organization name element in a contacts</summary>
public const string XmlOrgNameElement = "orgName";
/// <summary>static string for parsing the organization symbol element in a contacts</summary>
public const string XmlOrgSymbolElement = "orgSymbol";
/// <summary>static string for parsing the organization job description element in a contacts</summary>
public const string XmlOrgJobDescriptionElement = "orgJobDescription";
/// <summary>static string for parsing the organization department element in a contacts</summary>
public const string XmlOrgDepartmentElement = "orgDepartment";
/// <summary>static string for parsing the organization title element in a contacts</summary>
public const string XmlOrgTitleElement = "orgTitle";
/// <summary>static string for parsing the quotaBytesUsed element </summary>
public const string XmlQuotaBytesUsedElement = "quotaBytesUsed";
/// <summary>xmlelement for gd:rating</summary>
public const string XmlRatingElement = "rating";
/// <summary>xml attribute min for gd:rating</summary>
public const string XmlAttributeMin = "min";
/// <summary>xml attribute max for gd:rating</summary>
public const string XmlAttributeMax = "max";
/// <summary>xml attribute numRaters for gd:rating</summary>
public const string XmlAttributeNumRaters = "numRaters";
/// <summary>xml attribute average for gd:rating</summary>
public const string XmlAttributeAverage = "average";
#endregion
#region attribute strings
/// <summary>static string for parsing</summary>
public const string XmlAttributeStartTime = "startTime";
/// <summary>static string for parsing</summary>
public const string XmlAttributeEndTime = "endTime";
/// <summary>static string for parsing</summary>
public const string XmlAttributeValueString = "valueString";
/// <summary>static string for parsing the email in gd:who</summary>
public const string XmlAttributeEmail = "email";
/// <summary>static string for parsing</summary>
public const string XmlAttributeRel = "rel";
/// <summary>static string for parsing</summary>
public const string XmlAttributeLabel = "label";
/// <summary>static string for parsing</summary>
public const string XmlAttributeHref = "href";
/// <summary>static string for parsing</summary>
public const string XmlAttributeCountHint = "countHint";
/// <summary>static string for parsing</summary>
public const string XmlAttributeReadOnly = "readOnly";
/// <summary>static string for parsing</summary>
public const string XmlAttributeId = "id";
/// <summary>static string for parsing</summary>
public const string XmlAttributeDays = "days";
/// <summary>static string for parsing</summary>
public const string XmlAttributeHours = "hours";
/// <summary>static string for parsing</summary>
public const string XmlAttributeMinutes = "minutes";
/// <summary>static string for parsing</summary>
public const string XmlAttributeAbsoluteTime = "absoluteTime";
/// <summary>static string for parsing the specialized attribute on a RecurringException</summary>
public const string XmlAttributeSpecialized = "specialized";
/// <summary>static string for parsing</summary>
public const string XmlAttributeMethod= "method";
/// <summary>static string for parsing the address attribute</summary>
public const string XmlAttributeAddress= "address";
/// <summary>static string for parsing the primary attribute</summary>
public const string XmlAttributePrimary= "primary";
/// <summary>static string for parsing the protocol attribute</summary>
public const string XmlAttributeProtocol= "protocol";
/// <summary>static string for parsing the uri attribute</summary>
public const string XmlAttributeUri = "uri";
/// <summary>static string for parsing the displayname attribute</summary>
public const string XmlAttributeDisplayName = "displayName";
/// <summary>
/// a resource id
/// </summary>
public const string XmlResourceIdElement = "resourceId";
/// <summary>
/// lastviewed constant
/// </summary>
/// <returns></returns>
public const string XmlLastViewedElement = "lastViewed";
/// <summary>
/// lastviewed constant
/// </summary>
/// <returns></returns>
public const string XmlLastModifiedByElement = "lastModifiedBy";
#endregion
#region Calendar specific (consider moving to seperate table)
/// <summary>static string for parsing a webcontent element</summary>
public const string XmlWebContentElement = "webContent";
/// <summary>static string for parsing a webcontent element</summary>
public const string XmlWebContentGadgetElement = "webContentGadgetPref";
/// <summary>static string for parsing the extendedProperty element</summary>
public const string XmlExtendedPropertyElement = "extendedProperty";
/// <summary>static string for the url attribute</summary>
public const string XmlAttributeUrl = "url";
/// <summary>static string for the display attribute</summary>
public const string XmlAttributeDisplay = "display";
/// <summary>static string for the width attribute</summary>
public const string XmlAttributeWidth= "width";
/// <summary>static string for the height attribute</summary>
public const string XmlAttributeHeight= "height";
/// <summary>static string for the sendEventNotifications element</summary>
public const string XmlSendNotificationsElement = "sendEventNotifications";
/// <summary>static string for the quickAdd element</summary>
public const string XmlQuickAddElement = "quickadd";
#endregion
#region Contacts specific
/// <summary>
/// Allows storing person's name in a structured way. Consists of given name, additional name, family name, prefix, suffix and full name.
/// </summary>
public const string NameElement = "name";
/// <summary>
/// Person's given name
/// </summary>
public const string GivenNameElement = "givenName";
/// <summary>
/// Additional name of the person, e.g. middle name
/// </summary>
public const string AdditionalNameElement = "additionalName";
/// <summary>
/// Person's family Name
/// </summary>
public const string FamilyNameElement = "familyName";
/// <summary>
/// honorific prefix, eg. Mr or Mrs
/// </summary>
public const string NamePrefixElement = "namePrefix";
/// <summary>
/// Honorific suffix, eg. san
/// </summary>
public const string NameSuffixElement = "nameSuffix";
/// <summary>
/// Unstructured representation of the name
/// </summary>
public const string FullNameElement = "fullName";
/// <summary>
/// Postal address split into components. It allows to store the address in locale independent format.
/// The fields can be interpreted and used to generate formatted, locale dependent address.
/// </summary>
public const string StructuredPostalAddressElement = "structuredPostalAddress";
/// <summary>
/// The agent who actually receives the mail.
/// </summary>
public const string AgentElement = "agent";
/// <summary>
/// Used in places where houses have names
/// </summary>
public const string HousenameElement = "housename";
/// <summary>
/// Can be stree, avenue, road, etc
/// </summary>
public const string StreetElement = "street";
/// <summary>
/// Covers actual P.O. Boxes, drawers, locked bags etc
/// </summary>
public const string PoboxElement = "pobox";
/// <summary>
/// This is used to disambiguate a street address when a city contains
/// more than one street with the same name, or to specify a small place whose
/// mail is routed through a larger postal town.
/// In China it could be a county or a minor city.
/// </summary>
public const string NeighborhoodElement = "neighborhood";
/// <summary>
/// Can be City, village etc
/// </summary>
public const string CityElement = "city";
/// <summary>
/// Administrative districts
/// </summary>
public const string SubregionElement = "subregion";
/// <summary>
/// A state, province etc
/// </summary>
public const string RegionElement = "region";
/// <summary>
/// Postal code
/// </summary>
public const string PostcodeElement = "postcode";
/// <summary>
/// The name or code of the country
/// </summary>
public const string CountryElement = "country";
/// <summary>
/// The full, unstructured postal address
/// </summary>
public const string FormattedAddressElement = "formattedAddress";
/// <summary>
/// The full, unstructured postal address
/// </summary>
public const string XmlAttributeMailClass = "mailClass";
/// <summary>
/// The full, unstructured postal address
/// </summary>
public const string XmlAttributeUsage = "usage";
#endregion
}
/////////////////////////////////////////////////////////////////////////////
}
/////////////////////////////////////////////////////////////////////////////
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.