//
//  ChannelInfo.h
//  CyTV
//
//  Created by Andreas Junghans on 14.01.08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


typedef enum _SortChannelsBy {
    SortByNumber = 1,
    SortByName
} SortChannelsBy;

@interface ChannelInfo : NSObject {
    SInt32 _number;
    NSString *_name;
}

- (SInt32)getNumber;
- (NSString *)getName;
+ (void)collectChannelInfo;
+ (NSString *)getJSONForChannelsFrom:(unsigned long)fromIndex to:(unsigned long)toIndex sortedBy:(SortChannelsBy)sortedBy ascending:(BOOL)ascending;

@end
