Visual_Novel_iOS/crush/Crush/Src/Modules/Chat/Util/SessionUtilOC.h

29 lines
953 B
C
Raw Normal View History

2025-10-09 10:29:35 +00:00
//
// SessionUtilOC.h
// LegendTeam
//
// Created by 梁博 on 20/12/21.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SessionUtilOC : NSObject
+ (BOOL)shouldReloadWhenInsert:(NSArray<NSIndexPath *> *)indexPaths tableView:(UITableView *)tableView;
+ (NSArray<NSIndexPath *> *)getIndexPathsWith:(NSArray <NSNumber *>*)indexs;
+ (CGSize)sizeWithImageOriginSize:(CGSize)originSize
minSize:(CGSize)imageMinSize
maxSize:(CGSize)imageMaxSiz;
/// 时间显示规则
/// @param msglastTime 时间戳
/// @param showDetail 是否显示更详细的年月日 ---- 为NO"今天3:16 PM、昨天Yesterday、超过2天Jun 16, 2021" ----- 为YES"今天3:16 PM、昨天Yesterday 3:16 PM、超过2天Jun 16, 2021 3:16 PM"
+ (NSString*)showTime:(NSTimeInterval)msglastTime showDetail:(BOOL)showDetail;
@end
NS_ASSUME_NONNULL_END