PLVSpeakTopMessage

Objective-C

@interface PLVSpeakTopMessage : NSObject

@property (nonatomic, copy) NSString * _Nullable msgId;

/// 上墙内容
@property (nonatomic, copy) NSString *content;

@property (nonatomic, assign) NSTimeInterval time;

@property (nonatomic, assign) NSTimeInterval relativeTime;

/// 上墙用户昵称
@property (nonatomic, copy) NSString *nick;

/// 上墙用户头像
@property (nonatomic, copy) NSString *pic;

/// 操作上墙的头衔
@property (nonatomic, copy) NSString *topActor;

/// top 上墙 cancelTop下墙
@property (nonatomic, copy) NSString *action;

/// 其他上墙内容
@property (nonatomic, strong) NSArray *others;

/// 解析数据
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;

- (NSDictionary *)toDictionary;

@end

Swift

class PLVSpeakTopMessage : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString * _Nullable msgId

    Swift

    var msgId: String? { get set }
  • 上墙内容

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull content;

    Swift

    var content: String { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval time

    Swift

    var time: TimeInterval { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval relativeTime

    Swift

    var relativeTime: TimeInterval { get set }
  • 上墙用户昵称

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull nick;

    Swift

    var nick: String { get set }
  • pic

    上墙用户头像

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull pic;

    Swift

    var pic: String { get set }
  • 操作上墙的头衔

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull topActor;

    Swift

    var topActor: String { get set }
  • top 上墙 cancelTop下墙

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull action;

    Swift

    var action: String { get set }
  • 其他上墙内容

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray *_Nonnull others;

    Swift

    var others: [Any] { get set }
  • 解析数据

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;

    Swift

    init(dictionary: [AnyHashable : Any])
  • Undocumented

    Declaration

    Objective-C

    - (NSDictionary *)toDictionary;

    Swift

    func toDictionary() -> [AnyHashable : Any]