1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
Source-SnapChatCamera/ManagedCapturer/SCStateTransitionPayload.m
2018-08-08 02:34:41 +03:00

28 lines
717 B
Objective-C

//
// SCStateTransitionPayload.m
// Snapchat
//
// Created by Lin Jia on 1/8/18.
//
#import "SCStateTransitionPayload.h"
#import <SCFoundation/SCAssertWrapper.h>
@implementation SCStateTransitionPayload
- (instancetype)initWithFromState:(SCCaptureStateMachineStateId)fromState toState:(SCCaptureStateMachineStateId)toState
{
self = [super init];
if (self) {
SCAssert(fromState != toState, @"");
SCAssert(fromState > SCCaptureBaseStateId && fromState < SCCaptureStateMachineStateIdCount, @"");
SCAssert(toState > SCCaptureBaseStateId && toState < SCCaptureStateMachineStateIdCount, @"");
_fromState = fromState;
_toState = toState;
}
return self;
}
@end