///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///
/// Auto-generated by Stone, do not modify.
///

#import "DBCHECKRouteObjects.h"
#import "DBCHECKAppAuthRoutes.h"
#import "DBCHECKEchoResult.h"
#import "DBCHECKUserAuthRoutes.h"
#import "DBRequestErrors.h"
#import "DBStoneBase.h"

@implementation DBCHECKRouteObjects

static DBRoute *DBCHECKApp;
static DBRoute *DBCHECKUser;

static NSObject *lockObj = nil;
+ (void)initialize {
  static dispatch_once_t onceToken;
  dispatch_once(&onceToken, ^{
    lockObj = [[NSObject alloc] init];
  });
}

+ (DBRoute *)DBCHECKApp {
  @synchronized(lockObj) {
    if (!DBCHECKApp) {
      DBCHECKApp = [[DBRoute alloc] init:@"app"
                              namespace_:@"check"
                              deprecated:@NO
                              resultType:[DBCHECKEchoResult class]
                               errorType:nil
                                   attrs:@{@"auth" : @"app", @"host" : @"api", @"style" : @"rpc"}
                   dataStructSerialBlock:nil
                 dataStructDeserialBlock:nil];
    }
    return DBCHECKApp;
  }
}

+ (DBRoute *)DBCHECKUser {
  @synchronized(lockObj) {
    if (!DBCHECKUser) {
      DBCHECKUser = [[DBRoute alloc] init:@"user"
                               namespace_:@"check"
                               deprecated:@NO
                               resultType:[DBCHECKEchoResult class]
                                errorType:nil
                                    attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"}
                    dataStructSerialBlock:nil
                  dataStructDeserialBlock:nil];
    }
    return DBCHECKUser;
  }
}

@end
