XSCollector.h 720 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // XSCollector.h
  3. // XenonSDK
  4. //
  5. // Created by SAGESSE on 2019/5/30.
  6. // Copyright © 2019 SAGESSE. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface XSCollector : NSObject
  10. - (instancetype)initWithAppId:(id)appId gameId:(id)gameId;
  11. @property (nonatomic, class) XSCollector* shared;
  12. @property (nonatomic, readonly) NSString* identifer;
  13. /// Register a user for data analyzer.
  14. - (void)registerWithAccount:(NSString*)account name:(NSString*)name;
  15. /// Login a user for data analyzer.
  16. - (void)loginWithAccount:(NSString*)account name:(NSString*)name;
  17. /// Update account.
  18. - (void)reportWithAccount:(NSString*)account name:(NSString*)name level:(NSInteger)level server:(NSString*)sever;
  19. @end