﻿using System;
using System.Collections.Generic;

namespace ChatSDK
{
     /**
         * The multi-device callback interface.
         * 
         */
    public interface IMultiDeviceDelegate
    {
        /**
         * The callback for a multi-device contact event.
         *
         * @param operation The contact event. See {@link MultiDevicesOperation}.
         * @param target    The user ID of the contact.
         * @param ext       The extension information.
         */
        void onContactMultiDevicesEvent(MultiDevicesOperation operation, string target, string ext);

        /**
         * The callback for a multi-device group event.
         *
         * @param operation     The group event. See {@link MultiDevicesOperation}.
         * @param target        The group ID.
         * @param usernames     The target user ID(s) of the operation.
         */
        void onGroupMultiDevicesEvent(MultiDevicesOperation operation, string target, List<string> usernames);

        /**
         * The callback for a multi-device do-not-disturb event.
         * @param data     The do-not-disturb event.
         */
        void undisturbMultiDevicesEvent(string data);

        /**
         * The callback for a multi-device thread event.
         *
         * @param operation     The group event. See {@link MultiDevicesOperation}.
         * @param target        The group ID.
         * @param usernames     The target user ID(s) of the operation.
         */
        void onThreadMultiDevicesEvent(MultiDevicesOperation operation, string target, List<string> usernames);
    }

}
