CocoaSplit/StreamServicePlugins/CSTwitchStreamServicePlugin/TwitchStreamService.h
Zakk 4e58ecb47a Stream Services now have a dedicated base class, no longer combined with an output writer
Stream Services now have a method that returns a new instance of a CSOutputWriterProtocol compliant class, the base class creates a CSOutputBase for you.
2018-01-20 23:23:33 -05:00

50 lines
1 KiB
Objective-C

//
// TwitchStreamService.h
// CSTwitchStreamServicePlugin
//
// Created by Zakk on 8/29/14.
//
#import <Foundation/Foundation.h>
#import "CSStreamServiceProtocol.h"
#import "CSPluginServices.h"
#import "CSOauth2Authenticator.h"
#import "CSStreamServiceBase.h"
@interface TwitchStreamService : CSStreamServiceBase <CSStreamServiceProtocol>
{
NSString *_oauth_client_id;
bool _key_fetch_pending;
}
@property bool isReady;
@property (strong) NSArray *twitchServers;
@property (strong) NSString *streamKey;
@property (strong) NSString *selectedServer;
@property (strong) NSString *oAuthKey;
@property (strong) CSOauth2Authenticator *oauthObject;
@property (strong) NSString *accountName;
@property (assign) bool alwaysFetchKey;
@property (strong) NSArray *knownAccounts;
@property (assign) bool bandwidthTest;
-(NSViewController *)getConfigurationView;
-(NSString *)getServiceDestination;
-(void)fetchTwitchStreamKey;
+(NSString *)label;
+(NSString *)serviceDescription;
-(void)authenticateUser;
+(NSImage *)serviceImage;
@end