//
//  ALHomeTopicCardObject.h
//  GMAlpha
//
//  Created by zhb on 2018/11/15.
//  Copyright © 2018 Gengmei. All rights reserved.
//

#import <Foundation/Foundation.h>


@protocol ALHomeCardDataPortraitObject @end
@interface ALHomeCardDataPortraitObject : GMObject
@property (nonatomic, assign) NSInteger id;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *icon;
@property (nonatomic, copy) NSString *url;
@property (nonatomic, copy) NSString *type;//针对埋点.
@end

@protocol ALHomeCardDataImageObject @end
@interface ALHomeCardDataImageObject : GMObject
@property (nonatomic, copy) NSString *url;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@end

@protocol ALHomeTopicCardObject @end
@interface ALHomeTopicCardObject : GMObject
@property (nonatomic, assign) NSInteger topicId;
@property (nonatomic, copy) NSString *content;
@property (nonatomic, assign) NSInteger voteNum;
@property (nonatomic, assign) BOOL isVideo;
@property (nonatomic, assign) BOOL isVote;
@property (nonatomic, copy) NSString *url;

@property (nonatomic, strong) ALHomeCardDataImageObject *image;
@property (nonatomic, strong) ALHomeCardDataPortraitObject *portrait;


/** */
@property (nonatomic, strong) NSMutableAttributedString *attrContent;
@end

