﻿using System;
namespace ChatSDK
{
    /**
         * The contact manager callback interface.
         * 
         */
    public interface IContactManagerDelegate
    {
        /**
         * Occurs when a user is added as a contact.
         *
         * @param username   The user ID of the new contact.
         */
        void OnContactAdded(string username);

        /**
         * Occurs when a user is removed from a contact list.
         * 
         * @param username    The user ID of the removed contact.
         */
        void OnContactDeleted(string username);

        /**
         * Occurs when a user receives a friend request.
         *
         * @param username    The ID of the user who initiates the friend request.
         * @param reason      The invitation message. 
         */
        void OnContactInvited(string username, string reason);

        /**
        * Occurs when a friend request is approved.
        *
        * @param username The ID of the user who initiates the friend request.
        */
        void OnFriendRequestAccepted(string username);

        /**
         * Occurs when a friend request is declined.
         *
         * @param username The ID of the user who initiates the friend request.
         */
        void OnFriendRequestDeclined(string username);
    }
}
