Sha256: 3fe5efbe7377053c38356be8daf20875944c9709ea34a3c05b54a36bd01ccb81

Contents?: true

Size: 899 Bytes

Versions: 28

Compression:

Stored size: 899 Bytes

Contents

//
//  Create<%= @class_name %>Command.h
//  <%= @project_name %>
//
//  Created by <%= @developer.capitalize %> on <%= @created_on %>
//  Copyright(c) <%= Time.now.year %>, All rights reserved.
//

#import "Create<%= @class_name %>Command.h"
#import "ApplicationFacade.h"
#import "<%= @class_name %>Proxy.h"
#import "<%= @class_name %>VO.h"

@implementation Create<%= @class_name %>Command

-(void)execute:(id<INotification>)notification {
	<%= @class_name %>Proxy *<%= @project_name %>Proxy = (<%= @class_name %>Proxy *)[facade retrieveProxy:[<%= @class_name %>Proxy NAME]];
	<%= @class_name %>VO *<%= @project_name %>VO = [notification body];
	if ([<%= @project_name %>VO isValid]) {
		[<%= @project_name %>Proxy create:<%= @project_name %>VO];
		[facade sendNotification:Show<%= @class_name %>List];
	} else {
		[facade sendNotification:ShowError body:@"Invalid <%= @class_name %>"];
	}
}

@end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
appjam-0.1.8.11 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.10 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.9 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.8 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.7 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.6 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.5 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.4 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.3 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.2 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.1 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.pre13 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.pre12 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.pre11 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.pre10 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.pre9 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.pre7 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.pre6 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt
appjam-0.1.8.pre5 lib/appjam/generators/project/Classes/contacts/controller/CreateUserCommand.m.tt