mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
42 lines
750 B
Objective-C
42 lines
750 B
Objective-C
/*
|
|
Copyright (C) todo...
|
|
*/
|
|
|
|
#import <SOGoAPIVersion.h>
|
|
|
|
|
|
@implementation SOGoAPIVersion
|
|
|
|
- (id) init
|
|
{
|
|
[super init];
|
|
|
|
return self;
|
|
}
|
|
|
|
- (void) dealloc
|
|
{
|
|
[super dealloc];
|
|
}
|
|
|
|
- (BOOL) needAuth
|
|
{
|
|
return NO;
|
|
}
|
|
|
|
- (NSDictionary *) action: (WOContext*) ctx withParam: (NSDictionary *) param
|
|
{
|
|
NSDictionary* result;
|
|
|
|
result = [[NSDictionary alloc] initWithObjectsAndKeys:
|
|
[NSNumber numberWithInt:SOGO_MAJOR_VERSION], @"major",
|
|
[NSNumber numberWithInt:SOGO_MINOR_VERSION], @"minor",
|
|
[NSNumber numberWithInt:SOGO_PATCH_VERSION], @"patch",
|
|
nil];
|
|
|
|
[result autorelease];
|
|
return result;
|
|
}
|
|
|
|
|
|
@end /* SOGoAPIVersion */ |