developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
//  MOBFNetworkFlowInfo.h
//  MOBFoundation
//
//  Created by fenghj on 15/12/17.
//  Copyright © 2015年 MOB. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
/**
 *  网络流量信息
 */
@interface MOBFNetworkFlowInfo : NSObject
 
/**
 *  接收到的字节数
 */
@property (nonatomic, readonly) NSUInteger receivedBytes;
 
/**
 *  发送字节数
 */
@property (nonatomic, readonly) NSUInteger sentBytes;
 
/**
 *  最后的更新时间
 */
@property (nonatomic, strong, readonly) NSDate *lastChangeTime;
 
/**
 *  WIFI下的接收字节数
 */
@property (nonatomic, readonly) NSUInteger WIFIReceivedBytes;
 
/**
 *  WIFI下的发送字节数
 */
@property (nonatomic, readonly) NSUInteger WIFISentBytes;
 
/**
 *  蜂窝网络下的接收字节数
 */
@property (nonatomic, readonly) NSUInteger WWANReceivedBytes;
 
/**
 *  蜂窝网络下的发送字节数
 */
@property (nonatomic, readonly) NSUInteger WWANSentBytes;
 
/**
 *  获取网络流量信息共享实例
 *
 *  @return 网络流量信息对象
 */
+ (MOBFNetworkFlowInfo *)sharedInstance;
 
/**
 *  更新信息
 */
- (void)update;
 
@end