//
//  LogoutRequest.m
//  SFS2X
//
//  Original development by Infosfer Game Technologies Ltd. | http://www.infosfer.com.
//
//  Maintained and developed by A51 Integrated.
//  Copyright 2012 A51 Integrated | http://a51integrated.com. All rights reserved.
//
#import "LogoutRequest.h"
#import "SmartFox2XClient.h"

NSString * const LogoutRequest_KEY_ZONE_NAME = @"zn";

@implementation LogoutRequest


-(id)init {
	
	if((self = [super initWithId:BaseRequest_Logout])) {
	
	}
	return self;
}

+(id)request {
	LogoutRequest *req = [[LogoutRequest alloc] init];
	return req;
}

-(void)validate:(SmartFox2XClient *)sfs {
	
	if (sfs.mySelf == nil) {
		@throw [SFSValidationException validationExceptionWithReason:@"LogoutRequest Error" errors:[NSMutableArray arrayWithObjects:@"You are not logged in a the moment!", nil]];
	}
}

@end
