﻿using System;
using System.Collections.Generic;

namespace ChatSDK
{
    /**
         * The connection callback interface.
         */
    public interface IConnectionDelegate
    {
        /**
         * Occurs when the SDK successfully connects to the chat server.
         */
        void OnConnected();

        /**
         * Occurs when the SDK disconnects from the chat server.
         * 
         * The SDK disconnects from the chat server when you log out of the app or a network interruption occurs.
         * 
         * @param i The error code for the disconnection.
         * 
         */
        void OnDisconnected(int i);

        /**
        * Occurs when token is expired.
        */
        void OnTokenExpired();
		
        /**
        * Occurs when token will expired.
        */
		void OnTokenWillExpire();

    }

}
