2014 snapchat source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
717 B

//
// 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