Files
keyboard/Pods/LookinServer/Src/Main/Shared/LookinConnectionResponseAttachment.h
2025-10-28 10:18:10 +08:00

37 lines
997 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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