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