//
//  AccessHttpCmd.m
//  MobilePortal
//
//  Created by xiejiangbo on 2020/1/14.
//  Copyright © 2020 yin chen. All rights reserved.
//

#import "AccessHttpCmd.h"
#import "AccessHttpResult.h"
static NSString *kActionUrl1 = @"/visitis/save";
@implementation AccessHttpCmd
-(instancetype)initWithVersion:(NSString *)version{
    if ([version isEqualToString:PHttpVersion_v1]) {
        return [[AccessHttpCmd alloc]initWithAuthorizationState:AuthorizationNull];
    }else{
        NSAssert(NO, @"Invalid version");
    }
    return nil;
}

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

- (NSString *)getActionUrl{
    
    return kActionUrl1;
}
@end
 NSString * _Nonnull const kHttpAccessHttpCmd_devicenumber = @"devicenumber";
 NSString * _Nonnull const kHttpAccessHttpCmd_companyname = @"companyname";
 NSString * _Nonnull const kHttpAccessHttpCmd_userid = @"userid";
 NSString * _Nonnull const kHttpAccessHttpCmd_intertype = @"intertype";
 NSString * _Nonnull const kHttpAccessHttpCmd_devidetype = @"devidetype";
 NSString * _Nonnull const kHttpAccessHttpCmd_systemversion = @"systemversion";
 NSString * _Nonnull const kHttpAccessHttpCmd_operator = @"operator";
 NSString * _Nonnull const kHttpAccessHttpCmd_latutide = @"latutide";
 NSString * _Nonnull const kHttpAccessHttpCmd_address = @"address";
 NSString * _Nonnull const kHttpAccessHttpCmd_phonenumber = @"phonenumber";
 NSString * _Nonnull const kHttpAccessHttpCmd_platform = @"platform";
 NSString * _Nonnull const kHttpAccessHttpCmd_storage = @"storage";
 NSString * _Nonnull const kHttpAccessHttpCmd_remainstorage = @"remainstorage";
