Exemplo n.º 1
0
        /// <summary>
        /// Gets the interface type used to identify this End User Data.
        /// </summary>
        /// <param name="type">The End User Data type.</param>
        /// <returns>Either <see cref="IDbEndUserData"/> or <see cref="IDbEndUserGuildData"/>.</returns>
        public static Type GetInterfaceType(this EndUserDataType type)
        {
            switch (type)
            {
            case EndUserDataType.User: return(typeof(IDbEndUserData));

            case EndUserDataType.Guild: return(typeof(IDbEndUserGuildData));
            }
            return(null);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs the <see cref="EndUserDataEventArgs"/>.
 /// </summary>
 /// <param name="id">The Id of the End User Data type that changed.</param>
 /// <param name="type">The type of End User Data that changed.</param>
 public EndUserDataEventArgs(ulong id, EndUserDataType type)
 {
     Id   = id;
     Type = type;
 }