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

#import "DBACCOUNTRouteObjects.h"
#import "DBACCOUNTSetProfilePhotoError.h"
#import "DBACCOUNTSetProfilePhotoResult.h"
#import "DBACCOUNTUserAuthRoutes.h"
#import "DBRequestErrors.h"
#import "DBStoneBase.h"

@implementation DBACCOUNTRouteObjects

static DBRoute *DBACCOUNTSetProfilePhoto;

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

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

@end
