//
//  DeviceInformationHttpCmd.m
//  MobilePortal
//
//  Created by xiejiangbo on 2019/3/21.
//  Copyright © 2019 yin chen. All rights reserved.
//

#import "DeviceInformationHttpCmd.h"
#import "DeviceInformationHttpResult.h"

static NSString *kActionUrl1 = @"/appEir/terminalSave";
@implementation DeviceInformationHttpCmd

-(instancetype)initWithVersion:(NSString *)version{
    if ([version isEqualToString:PHttpVersion_v1]) {
        return [[DeviceInformationHttpCmd alloc]initWithAuthorizationState:AuthorizationNull];
    }else{
        NSAssert(NO, @"Invalid version");
    }
    return nil;
}

- (instancetype)initWithAuthorizationState:(AuthorizationState)state{
    self = [super initWithAuthorizationState:state];
    if (self != nil) {
        self.result = [[DeviceInformationHttpResult alloc]init];
    }
    return self;
}

- (NSString *)getActionUrl{
    
    return kActionUrl1;
}
@end
NSString *const kHttpDeviceInformationHttpCmd_attr = @"attr";
NSString *const kHttpDeviceInformationHttpCmd_available_capacity = @"available_capacity";
NSString *const kHttpDeviceInformationHttpCmd_battery_level = @"battery_level";
NSString *const kHttpDeviceInformationHttpCmd_bluetooth_address = @"bluetooth_address";
NSString *const kHttpDeviceInformationHttpCmd_compile_version = @"compile_version";
NSString *const kHttpDeviceInformationHttpCmd_createby = @"createby";
NSString *const kHttpDeviceInformationHttpCmd_createon = @"createon";
NSString *const kHttpDeviceInformationHttpCmd_device_changeid = @"device_changeid";
NSString *const kHttpDeviceInformationHttpCmd_device_channelid = @"device_channelid";
NSString *const kHttpDeviceInformationHttpCmd_device_model = @"device_model";
NSString *const kHttpDeviceInformationHttpCmd_device_name = @"device_name";
NSString *const kHttpDeviceInformationHttpCmd_device_sid = @"device_sid";
NSString *const kHttpDeviceInformationHttpCmd_device_type = @"device_type";
NSString *const kHttpDeviceInformationHttpCmd_device_userid = @"device_userid";
NSString *const kHttpDeviceInformationHttpCmd_id = @"id";
NSString *const kHttpDeviceInformationHttpCmd_imei = @"imei";
NSString *const kHttpDeviceInformationHttpCmd_latest_position = @"latest_position";
NSString *const kHttpDeviceInformationHttpCmd_login_date = @"login_date";
NSString *const kHttpDeviceInformationHttpCmd_modem_firmware = @"modem_firmware";
NSString *const kHttpDeviceInformationHttpCmd_operators = @"operators";
NSString *const kHttpDeviceInformationHttpCmd_optno = @"optno";
NSString *const kHttpDeviceInformationHttpCmd_phone_number = @"phone_number";
NSString *const kHttpDeviceInformationHttpCmd_platform = @"platform";
NSString *const kHttpDeviceInformationHttpCmd_push_date = @"push_date";
NSString *const kHttpDeviceInformationHttpCmd_remark = @"remark";
NSString *const kHttpDeviceInformationHttpCmd_status = @"status";
NSString *const kHttpDeviceInformationHttpCmd_storage_capacity = @"storage_capacity";
NSString *const kHttpDeviceInformationHttpCmd_sys_version = @"sys_version";
NSString *const kHttpDeviceInformationHttpCmd_updateby = @"updateby";
NSString *const kHttpDeviceInformationHttpCmd_updateon = @"updateon";
NSString *const kHttpDeviceInformationHttpCmd_user_id = @"user_id";
NSString *const kHttpDeviceInformationHttpCmd_wlan_address = @"wlan_address";
NSString *const kHttpDeviceInformationHttpCmd_netstat = @"netstat";
NSString *const kHttpDeviceInformationHttpCmd_equipmentversion = @"equipmentversion";
NSString *const kHttpDeviceInformationHttpCmd_app_version = @"app_version";
