mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 20:34:03 -04:00 
			
		
		
		
	added files via upload
This commit is contained in:
		
							
								
								
									
										21
									
								
								Tweaks/iSponsorBlock/SponsorSegment.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								Tweaks/iSponsorBlock/SponsorSegment.m
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| #import "Headers/SponsorSegment.h" | ||||
|  | ||||
| @implementation SponsorSegment | ||||
| - (instancetype)initWithStartTime:(CGFloat)startTime endTime:(CGFloat)endTime category:(NSString *)category UUID:(NSString *)UUID { | ||||
|     self = [super init]; | ||||
|     if (self) { | ||||
|         self.startTime = startTime; | ||||
|         self.endTime = endTime; | ||||
|         self.category = category; | ||||
|         self.UUID = UUID; | ||||
|     } | ||||
|     return self; | ||||
| } | ||||
| - (void)setEndTime:(CGFloat)endTime { | ||||
|     if (endTime < self.startTime) { | ||||
|         _endTime = -1; | ||||
|         return; | ||||
|     } | ||||
|     _endTime = endTime; | ||||
| } | ||||
| @end | ||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn