//
//  NXKickInfo.h
//  NXSdwan
//
//  Created by 徐家骏 on 2019/6/17.
//  Copyright © 2019 徐家骏. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 *  被踢下线的原因
 */
typedef NS_ENUM(NSInteger, NXKickReason)
{
    /**
     *  被另外一个客户端踢下线 (互斥客户端一端登录挤掉上一个登录中的客户端)
     */
    NXKickReasonByClient = 1,
    /**
     *  被服务器踢下线
     */
    NXKickReasonByServer = 2,
    /**
     *  被服务器限制访问, 一般是由用户举报引起一定时段的禁用
     */
    NXKickReasonByServerLimitAccess = 3,
    /**
     *  被另外一个客户端手动选择踢下线
     */
    NXKickReasonByClientManually   = 4,
};


@interface NXKickInfo : NSObject

@property (nonatomic, assign)   NXKickReason   reason;

@property (nonatomic, assign)   long long       timestamp;

@property (nonatomic, strong)   NSString        *model;

@property (nonatomic, strong)   NSString        *ip;

@end

NS_ASSUME_NONNULL_END
