mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-23 14:05:33 +00:00
29 lines
449 B
Objective-C
Executable File
29 lines
449 B
Objective-C
Executable File
//
|
|
// Created by Tikhonenko Pavel on 30/11/2013.
|
|
// Copyright (c) 2013 Coub. All rights reserved.
|
|
//
|
|
|
|
|
|
#import "CBTagNew.h"
|
|
|
|
|
|
@implementation CBTagNew
|
|
{
|
|
|
|
}
|
|
|
|
- (NSString *)hashTag
|
|
{
|
|
return [@"#" stringByAppendingString:_title];
|
|
}
|
|
|
|
+ (instancetype)tagWithAttributes:(NSDictionary *)attributes
|
|
{
|
|
CBTagNew *tag = [CBTagNew new];
|
|
tag.tagId = attributes[@"id"];
|
|
tag.title = attributes[@"title"];
|
|
tag.value = attributes[@"value"];
|
|
return tag;
|
|
}
|
|
|
|
@end |