//
//  RCTool.h
//  Demo
//
//  Created by 余衡武 on 2024/10/5.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface RCTool : NSObject

/// 时间戳
+ (NSString *)timeStamp;

/// 解析预览图
+ (UIImage *)getPreviewImageWebSocketData:(NSData *)data;

/// 颜色
+ (UIColor *)hwColor:(id)object;
+ (UIColor *)hwColor:(id)object alpha:(CGFloat)dAlpha;

/// 字典转JSON字符串
+ (NSString *)getJSONStringFrom:(NSDictionary *)dict;
/// JSON字符串转字典
+ (NSDictionary *)getDictFromJSONString:(NSString *)json;

@end

NS_ASSUME_NONNULL_END
