LookinConnectionResponseAttachment.h 997 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifdef SHOULD_COMPILE_LOOKIN_SERVER
  2. //
  3. // LookinConnectionResponse.h
  4. // Lookin
  5. //
  6. // Created by Li Kai on 2019/1/15.
  7. // https://lookin.work
  8. //
  9. #import <Foundation/Foundation.h>
  10. #import "LookinConnectionAttachment.h"
  11. @interface LookinConnectionResponseAttachment : LookinConnectionAttachment
  12. + (instancetype)attachmentWithError:(NSError *)error;
  13. @property(nonatomic, assign) int lookinServerVersion;
  14. @property(nonatomic, strong) NSError *error;
  15. /// 如果为 YES,则表示 app 正处于后台模式,默认为 NO
  16. @property(nonatomic, assign) BOOL appIsInBackground;
  17. /**
  18. dataTotalCount 为 0 时表示仅有这一个 response,默认为 0
  19. dataTotalCount 大于 0 时表示可能有多个 response,当所有 response 的 currentDataCount 的总和大于 dataTotalCount 即表示所有 response 已接收完毕
  20. */
  21. @property(nonatomic, assign) NSUInteger dataTotalCount;
  22. @property(nonatomic, assign) NSUInteger currentDataCount;
  23. @end
  24. #endif /* SHOULD_COMPILE_LOOKIN_SERVER */