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