/// <summary> /// GetValue's the internal session type used by the external service. /// </summary> /// <param name="type">The type to be converted.</param> /// <returns>The string representation required by the external service.</returns> internal static string ToExternalServiceValue(this RicohEntryType type) { IDictionary <RicohEntryType, string> map = new Dictionary <RicohEntryType, string>() { { RicohEntryType.None, "user" }, { RicohEntryType.User, "user" }, { RicohEntryType.Group, "group" }, }; return(map[type]); }
/// <param name="id">The unique id for the entry.</param> /// <param name="entryType">The type of address book entry.</param> /// <param name="name">The name of the address book entry.</param> public AddressBookEntry(uint id, RicohEntryType entryType, string name) : this(id, entryType) { Name = name; }
/// <param name="id">The unique id for the entry.</param> /// <param name="entryType">The type of address book entry.</param> public AddressBookEntry(uint id, RicohEntryType entryType = RicohEntryType.User) { Id = id; EntryType = entryType; }
/// <param name="entryType">The type of address book entry.</param> public AddressBookEntry(RicohEntryType entryType) { EntryType = entryType; }