| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // JXPlaybackProgress.m
- // AICity
- //
- // Feature: 003-ios-api-https
- // 播放进度数据模型实现
- //
- #import "JXPlaybackProgress.h"
- @implementation JXPlaybackProgress
- - (instancetype)init {
- self = [super init];
- if (self) {
- _updatedAt = [NSDate date];
- _synced = NO;
- _isCompleted = NO;
- _progress = 0.0;
- }
- return self;
- }
- - (NSString *)description {
- return [NSString stringWithFormat:@"<JXPlaybackProgress dramaId:%@ episodeId:%@ position:%ld duration:%ld progress:%.2f%% completed:%d synced:%d>",
- self.jxDramaId,
- self.jxEpisodeId,
- (long)self.position,
- (long)self.duration,
- self.progress * 100,
- self.isCompleted,
- self.synced];
- }
- @end
|