Esempio n. 1
0
        /// <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]);
        }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /// <param name="entryType">The type of address book entry.</param>
 public AddressBookEntry(RicohEntryType entryType)
 {
     EntryType = entryType;
 }