/*******************************************************************************
 * Copyright (c) 2024-2025 R3944Realms. All rights reserved.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 *     http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/

package com.r3944realms.dg_lab.utils.enums;

/**
 * The enum Send mode.
 */
public enum SendMode {
    /**
     * 仅文本 <br/>
     * 即双端均用统一的格式发送Json信息<br/>
     * <br/>
     * PowerBox通讯<br/>Json如下：<br/>
     * <code>{"type":"XXX",clientId:"XXX-XXX-XXX-XXX",targetId:"XXX-XXX-XXX-XXX","message":"XXX"}</code>
     * <br/>详细可见{@link com.r3944realms.dg_lab.api.websocket.message.data.PowerBoxData}
     */
    OnlyText,
    /**
     * 对客户端使用包含更多信息Message<br/>
     * 仅客户端与服务器通讯采用，app端仍然为原Text格式<br/>
     * 客户端与服务器端PowerBox通讯<br/>Json如下: <br/>
     * <code>{"commandType":"XXX","direction":{"sender":{"name":"uuid","type":"T_CLIENT"},"receiver":{"name":"uuid","type":"T_SERVER"}},"payload":{"timer_A":0,"timer_B":0,"type":"","clientId":"XXX-XXX-XXX-XXX","targetId":"XXX-XXX-XXX-XXX","message":"XXX"}}</code>
     * <br/>详细可见{@link com.r3944realms.dg_lab.api.websocket.message.PowerBoxMessage}
     */
    ClientMessage
}
