Example #1
0
        /// <summary>
        /// When the wrapper / bot has connected to an API
        /// </summary>
        /// <param name="wrapper">The wrapper that has connected to the API</param>
        internal Task OnWrapperDisconnectedAsync(ApiWrapper.ApiWrapper wrapper)
        {
            LoggerFactory
            .CreateLogger(GetType().FullName)
            .LogTrace($"{nameof(Disconnected)}: Wrapper: {wrapper.Name}");

            return(Disconnected != null
                ? Disconnected.Invoke(wrapper)
                : Task.CompletedTask);
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="wrapper"></param>
 protected Channel(ApiWrapper wrapper)
 {
     ApiWrapper = wrapper;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="wrapper"></param>
 protected ReceivedMessage(ApiWrapper wrapper) : base(wrapper)
 {
     // Nothing to do here
 }
Example #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="wrapper"></param>
 protected Server(ApiWrapper wrapper)
 {
     ApiWrapper = wrapper;
 }
Example #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="wrapper"></param>
 protected User(ApiWrapper wrapper)
 {
     ApiWrapper = wrapper;
 }
Example #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="wrapper"></param>
 protected ChatMessage(ApiWrapper wrapper) : base(wrapper)
 {
     // Nothing to do here
 }
Example #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="wrapper"></param>
 protected Message(ApiWrapper wrapper)
 {
     ApiWrapper = wrapper;
 }