Skip to content
Browse files

Added images. Added icons and startup image.

  • Loading branch information...
1 parent 5879dce commit 0dc3b4c2fa46255571dbfaeadd6644042cb007e7 @maggix committed
View
48 NerdDinner.xcodeproj/project.pbxproj
@@ -20,6 +20,16 @@
AC66CE5514BF9E9F0098E1F1 /* IndividualSubviewsBasedApplicationCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AC66CE5414BF9E9F0098E1F1 /* IndividualSubviewsBasedApplicationCell.xib */; };
AC66CED514C21E500098E1F1 /* License.rtf in Resources */ = {isa = PBXBuildFile; fileRef = AC66CED414C21E4F0098E1F1 /* License.rtf */; };
AC66CED714C222470098E1F1 /* Dinner.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CED614C222470098E1F1 /* Dinner.png */; };
+ AC66CF1D14C246F30098E1F1 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF1514C246F30098E1F1 /* Icon-72.png */; };
+ AC66CF1E14C246F30098E1F1 /* Icon-Small-50.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF1614C246F30098E1F1 /* Icon-Small-50.png */; };
+ AC66CF1F14C246F30098E1F1 /* Icon-Small.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF1714C246F30098E1F1 /* Icon-Small.png */; };
+ AC66CF2014C246F30098E1F1 /* Icon-Small@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF1814C246F30098E1F1 /* Icon-Small@2x.png */; };
+ AC66CF2114C246F30098E1F1 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF1914C246F30098E1F1 /* Icon.png */; };
+ AC66CF2214C246F30098E1F1 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF1A14C246F30098E1F1 /* Icon@2x.png */; };
+ AC66CF2314C246F30098E1F1 /* Icon512px.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF1B14C246F30098E1F1 /* Icon512px.png */; };
+ AC66CF2414C246F30098E1F1 /* iTunesArtwork in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF1C14C246F30098E1F1 /* iTunesArtwork */; };
+ AC66CF2714C246FF0098E1F1 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF2514C246FF0098E1F1 /* Default.png */; };
+ AC66CF2814C246FF0098E1F1 /* Default@2X.png in Resources */ = {isa = PBXBuildFile; fileRef = AC66CF2614C246FF0098E1F1 /* Default@2X.png */; };
AC7CF87314BAFBEE00AC5F92 /* MBProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = AC7CF87214BAFBEE00AC5F92 /* MBProgressHUD.m */; };
AC7CF87714BAFEDE00AC5F92 /* GradientButton.m in Sources */ = {isa = PBXBuildFile; fileRef = AC7CF87614BAFEDD00AC5F92 /* GradientButton.m */; };
ACBD0EEB14BBB01A00C2FC3C /* ButtonCell.m in Sources */ = {isa = PBXBuildFile; fileRef = ACBD0ECE14BBB01A00C2FC3C /* ButtonCell.m */; };
@@ -84,6 +94,16 @@
AC66CE5414BF9E9F0098E1F1 /* IndividualSubviewsBasedApplicationCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = IndividualSubviewsBasedApplicationCell.xib; path = NerdDinner/CustomTableViewCells/IndividualSubviewsBasedApplicationCell.xib; sourceTree = "<group>"; };
AC66CED414C21E4F0098E1F1 /* License.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; name = License.rtf; path = NerdDinner/License.rtf; sourceTree = "<group>"; };
AC66CED614C222470098E1F1 /* Dinner.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Dinner.png; path = NerdDinner/Images/Dinner.png; sourceTree = "<group>"; };
+ AC66CF1514C246F30098E1F1 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-72.png"; path = "NerdDinner/Images/Icon-72.png"; sourceTree = "<group>"; };
+ AC66CF1614C246F30098E1F1 /* Icon-Small-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-Small-50.png"; path = "NerdDinner/Images/Icon-Small-50.png"; sourceTree = "<group>"; };
+ AC66CF1714C246F30098E1F1 /* Icon-Small.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-Small.png"; path = "NerdDinner/Images/Icon-Small.png"; sourceTree = "<group>"; };
+ AC66CF1814C246F30098E1F1 /* Icon-Small@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-Small@2x.png"; path = "NerdDinner/Images/Icon-Small@2x.png"; sourceTree = "<group>"; };
+ AC66CF1914C246F30098E1F1 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Icon.png; path = NerdDinner/Images/Icon.png; sourceTree = "<group>"; };
+ AC66CF1A14C246F30098E1F1 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon@2x.png"; path = "NerdDinner/Images/Icon@2x.png"; sourceTree = "<group>"; };
+ AC66CF1B14C246F30098E1F1 /* Icon512px.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Icon512px.png; path = NerdDinner/Images/Icon512px.png; sourceTree = "<group>"; };
+ AC66CF1C14C246F30098E1F1 /* iTunesArtwork */ = {isa = PBXFileReference; lastKnownFileType = file; name = iTunesArtwork; path = NerdDinner/Images/iTunesArtwork; sourceTree = "<group>"; };
+ AC66CF2514C246FF0098E1F1 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = NerdDinner/Images/Default.png; sourceTree = "<group>"; };
+ AC66CF2614C246FF0098E1F1 /* Default@2X.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2X.png"; path = "NerdDinner/Images/Default@2X.png"; sourceTree = "<group>"; };
AC7CF87114BAFBEE00AC5F92 /* MBProgressHUD.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MBProgressHUD.h; path = ../../github/maggixMBProgressHUD/MBProgressHUD.h; sourceTree = "<group>"; };
AC7CF87214BAFBEE00AC5F92 /* MBProgressHUD.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MBProgressHUD.m; path = ../../github/maggixMBProgressHUD/MBProgressHUD.m; sourceTree = "<group>"; };
AC7CF87514BAFEDD00AC5F92 /* GradientButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GradientButton.h; path = ../../github/maggixMBProgressHUD/Demo/GradientButton.h; sourceTree = "<group>"; };
@@ -232,9 +252,27 @@
path = ..;
sourceTree = "<group>";
};
+ AC66CF2914C247070098E1F1 /* Images */ = {
+ isa = PBXGroup;
+ children = (
+ AC66CF2514C246FF0098E1F1 /* Default.png */,
+ AC66CF2614C246FF0098E1F1 /* Default@2X.png */,
+ AC66CF1514C246F30098E1F1 /* Icon-72.png */,
+ AC66CF1614C246F30098E1F1 /* Icon-Small-50.png */,
+ AC66CF1714C246F30098E1F1 /* Icon-Small.png */,
+ AC66CF1814C246F30098E1F1 /* Icon-Small@2x.png */,
+ AC66CF1914C246F30098E1F1 /* Icon.png */,
+ AC66CF1A14C246F30098E1F1 /* Icon@2x.png */,
+ AC66CF1B14C246F30098E1F1 /* Icon512px.png */,
+ AC66CF1C14C246F30098E1F1 /* iTunesArtwork */,
+ );
+ name = Images;
+ sourceTree = "<group>";
+ };
AC7CF85C14BAF89300AC5F92 /* Resources */ = {
isa = PBXGroup;
children = (
+ AC66CF2914C247070098E1F1 /* Images */,
AC66CED614C222470098E1F1 /* Dinner.png */,
AC66CED414C21E4F0098E1F1 /* License.rtf */,
AC66CE4C14BF9E860098E1F1 /* DarkBackground.png */,
@@ -566,6 +604,16 @@
AC66CE5514BF9E9F0098E1F1 /* IndividualSubviewsBasedApplicationCell.xib in Resources */,
AC66CED514C21E500098E1F1 /* License.rtf in Resources */,
AC66CED714C222470098E1F1 /* Dinner.png in Resources */,
+ AC66CF1D14C246F30098E1F1 /* Icon-72.png in Resources */,
+ AC66CF1E14C246F30098E1F1 /* Icon-Small-50.png in Resources */,
+ AC66CF1F14C246F30098E1F1 /* Icon-Small.png in Resources */,
+ AC66CF2014C246F30098E1F1 /* Icon-Small@2x.png in Resources */,
+ AC66CF2114C246F30098E1F1 /* Icon.png in Resources */,
+ AC66CF2214C246F30098E1F1 /* Icon@2x.png in Resources */,
+ AC66CF2314C246F30098E1F1 /* Icon512px.png in Resources */,
+ AC66CF2414C246F30098E1F1 /* iTunesArtwork in Resources */,
+ AC66CF2714C246FF0098E1F1 /* Default.png in Resources */,
+ AC66CF2814C246FF0098E1F1 /* Default@2X.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
BIN NerdDinner/Images/Icon-72.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN NerdDinner/Images/Icon-Small-50.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN NerdDinner/Images/Icon-Small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN NerdDinner/Images/Icon-Small@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN NerdDinner/Images/Icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN NerdDinner/Images/Icon@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN NerdDinner/Images/iTunesArtwork
Binary file not shown.
View
18 NerdDinner/NerdDinner-Info.plist
@@ -9,7 +9,23 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFiles</key>
- <array/>
+ <array>
+ <string>Icon.png</string>
+ <string>Icon@2x.png</string>
+ </array>
+ <key>CFBundleIcons</key>
+ <dict>
+ <key>CFBundlePrimaryIcon</key>
+ <dict>
+ <key>CFBundleIconFiles</key>
+ <array>
+ <string>Icon.png</string>
+ <string>Icon@2x.png</string>
+ </array>
+ <key>UIPrerenderedIcon</key>
+ <false/>
+ </dict>
+ </dict>
<key>CFBundleIdentifier</key>
<string>GiovanniMaggini.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
View
281 NerdDinnerEntities.h
@@ -1,281 +0,0 @@
-/**
-*
-*Copyright 2010 Microsoft Corp
-*
-*Licensed under the Apache License, Version 2.0 (the "License");
-*you may not use this file except in compliance with the License.
-*You may obtain a copy of the License at
-*
-*http://www.apache.org/licenses/LICENSE-2.0
-*
-*Unless required by applicable law or agreed to in writing, software
-*distributed under the License is distributed on an "AS IS" BASIS,
-*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-*See the License for the specific language governing permissions and
-*limitations under the License.
-*/
-/**
-* This code was generated by the tool 'odatagen'.
-* Runtime Version:1.0
-*
-* Changes to this file may cause incorrect behavior and will be lost if
-* the code is regenerated.
-*/
-/**
-* Defines default Data Service URL for this proxy class
-*/
-#define DEFAULT_SERVICE_URL @""
-
-
-#define DataServiceVersion @"1.0"
-
-#import "ODataObject.h"
-#import "ObjectContext.h"
-#import "DataServiceQuery.h"
-#import "ODataGUID.h"
-#import "ODataBool.h"
-#import "mProperties.h"
-
-
-/**
- * @interface:Dinner
- * @Type:EntityType
-
- * @key:DinnerID*
- */
-@interface NerdDinnerModel_Dinner : ODataObject
-{
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.Int32
- */
- NSNumber *m_DinnerID;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:50
- * @FixedLength:false
- */
- NSString *m_Title;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.DateTime
- */
- NSDate *m_EventDate;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:256
- * @FixedLength:false
- */
- NSString *m_Description;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:256
- * @FixedLength:false
- */
- NSString *m_HostedBy;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:20
- * @FixedLength:false
- */
- NSString *m_ContactPhone;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:50
- * @FixedLength:false
- */
- NSString *m_Address;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:30
- * @FixedLength:false
- */
- NSString *m_Country;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.Double
- */
- NSDecimalNumber *m_Latitude;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.Double
- */
- NSDecimalNumber *m_Longitude;
-
- /**
- * @Type:EntityProperty
- * @EdmType:Edm.String
- * @MaxLength:256
- * @FixedLength:false
- */
- NSString *m_HostedById;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:50
- * @FixedLength:false
- */
- NSString *m_Picture_Filename;
-
- /**
- * @Type:EntityProperty
- * @EdmType:Edm.Binary
- */
- NSData *m_Picture_File;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:50
- * @FixedLength:false
- */
- NSString *m_DinnerType;
-
- /**
- * @Type:NavigationProperty
- * @Relationship:FK_RSVP_Dinners
- * @FromRole:Dinners
- * @ToRole:RSVP
- */
- NSMutableArray *m_RSVPs;
-
-}
-
-@property ( nonatomic , retain , getter=getDinnerID , setter=setDinnerID )NSNumber *m_DinnerID;
-@property ( nonatomic , retain , getter=getTitle , setter=setTitle ) NSString *m_Title;
-@property ( nonatomic , retain , getter=getEventDate , setter=setEventDate )NSDate *m_EventDate;
-@property ( nonatomic , retain , getter=getDescription , setter=setDescription ) NSString *m_Description;
-@property ( nonatomic , retain , getter=getHostedBy , setter=setHostedBy ) NSString *m_HostedBy;
-@property ( nonatomic , retain , getter=getContactPhone , setter=setContactPhone ) NSString *m_ContactPhone;
-@property ( nonatomic , retain , getter=getAddress , setter=setAddress ) NSString *m_Address;
-@property ( nonatomic , retain , getter=getCountry , setter=setCountry ) NSString *m_Country;
-@property ( nonatomic , retain , getter=getLatitude , setter=setLatitude )NSDecimalNumber *m_Latitude;
-@property ( nonatomic , retain , getter=getLongitude , setter=setLongitude )NSDecimalNumber *m_Longitude;
-@property ( nonatomic , retain , getter=getHostedById , setter=setHostedById ) NSString *m_HostedById;
-@property ( nonatomic , retain , getter=getPicture_Filename , setter=setPicture_Filename ) NSString *m_Picture_Filename;
-@property ( nonatomic , retain , getter=getPicture_File , setter=setPicture_File )NSData *m_Picture_File;
-@property ( nonatomic , retain , getter=getDinnerType , setter=setDinnerType ) NSString *m_DinnerType;
-@property ( nonatomic , retain , getter=getRSVPs , setter=setRSVPs )NSMutableArray *m_RSVPs;
-
-+ (id) CreateDinnerWithdinnerid:(NSNumber *)aDinnerID title:(NSString *)aTitle eventdate:(NSDate *)aEventDate description:(NSString *)aDescription hostedby:(NSString *)aHostedBy contactphone:(NSString *)aContactPhone address:(NSString *)aAddress country:(NSString *)aCountry latitude:(NSDecimalNumber *)aLatitude longitude:(NSDecimalNumber *)aLongitude picture_filename:(NSString *)aPicture_Filename dinnertype:(NSString *)aDinnerType;
-- (id) init;
-- (id) initWithUri:(NSString*)anUri;
-@end
-
-/**
- * @interface:RSVP
- * @Type:EntityType
-
- * @key:RsvpID*
- */
-@interface NerdDinnerModel_RSVP : ODataObject
-{
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.Int32
- */
- NSNumber *m_RsvpID;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.Int32
- */
- NSNumber *m_DinnerID;
-
- /**
- * @Type:EntityProperty
- * NotNullable
- * @EdmType:Edm.String
- * @MaxLength:30
- * @FixedLength:false
- */
- NSString *m_AttendeeName;
-
- /**
- * @Type:EntityProperty
- * @EdmType:Edm.String
- * @MaxLength:256
- * @FixedLength:false
- */
- NSString *m_AttendeeNameId;
-
- /**
- * @Type:NavigationProperty
- * @Relationship:FK_RSVP_Dinners
- * @FromRole:RSVP
- * @ToRole:Dinners
- */
- NSMutableArray *m_Dinner;
-
-}
-
-@property ( nonatomic , retain , getter=getRsvpID , setter=setRsvpID )NSNumber *m_RsvpID;
-@property ( nonatomic , retain , getter=getDinnerID , setter=setDinnerID )NSNumber *m_DinnerID;
-@property ( nonatomic , retain , getter=getAttendeeName , setter=setAttendeeName ) NSString *m_AttendeeName;
-@property ( nonatomic , retain , getter=getAttendeeNameId , setter=setAttendeeNameId ) NSString *m_AttendeeNameId;
-@property ( nonatomic , retain , getter=getDinner , setter=setDinner )NSMutableArray *m_Dinner;
-
-+ (id) CreateRSVPWithrsvpid:(NSNumber *)aRsvpID dinnerid:(NSNumber *)aDinnerID attendeename:(NSString *)aAttendeeName;
-- (id) init;
-- (id) initWithUri:(NSString*)anUri;
-@end
-
-/**
- * Container interface NerdDinnerEntities, Namespace: NerdDinnerModel
- */
-@interface NerdDinnerEntities : ObjectContext
-{
- NSString *m_OData_etag;
- DataServiceQuery *m_Dinners;
- DataServiceQuery *m_RSVPs;
-
-}
-
-@property ( nonatomic , retain , getter=getEtag , setter=setEtag )NSString *m_OData_etag;
-@property ( nonatomic , retain , getter=getDinners , setter=setDinners ) DataServiceQuery *m_Dinners;
-@property ( nonatomic , retain , getter=getRSVPs , setter=setRSVPs ) DataServiceQuery *m_RSVPs;
-
-- (id) init;
-- (id) initWithUri:(NSString*)anUri credential:(id)acredential;
-- (NSArray *) FindUpcomingDinners;
-- (NSArray *) DinnersNearMeWithplaceorzip:(NSString *)placeOrZip;
-- (NSString *) SetFileWithdinnerid:(NSNumber *)dinnerID file:(NSData *)file;
-- (NSString *) GetFileWithdinnerid:(NSNumber *)dinnerID;
-- (id) dinners;
-- (id) rsvps;
-- (void) addToDinners:(id)anObject;
-- (void) addToRSVPs:(id)anObject;
-
-@end
View
549 NerdDinnerEntities.m
@@ -1,549 +0,0 @@
-/**
-*
-*Copyright 2010 Microsoft Corp
-*
-*Licensed under the Apache License, Version 2.0 (the "License");
-*you may not use this file except in compliance with the License.
-*You may obtain a copy of the License at
-*
-*http://www.apache.org/licenses/LICENSE-2.0
-*
-*Unless required by applicable law or agreed to in writing, software
-*distributed under the License is distributed on an "AS IS" BASIS,
-*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-*See the License for the specific language governing permissions and
-*limitations under the License.
-*/
-/**
-* This code was generated by the tool 'odatagen'.
-* Runtime Version:1.0
-*
-* Changes to this file may cause incorrect behavior and will be lost if
-* the code is regenerated.
-*/
-#import "NerdDinnerEntities.h"
-/**
- * @interface:Dinner
- * @key:DinnerID
- */
-@implementation NerdDinnerModel_Dinner
- @synthesize m_DinnerID;
- @synthesize m_Title;
- @synthesize m_EventDate;
- @synthesize m_Description;
- @synthesize m_HostedBy;
- @synthesize m_ContactPhone;
- @synthesize m_Address;
- @synthesize m_Country;
- @synthesize m_Latitude;
- @synthesize m_Longitude;
- @synthesize m_HostedById;
- @synthesize m_Picture_Filename;
- @synthesize m_Picture_File;
- @synthesize m_DinnerType;
- @synthesize m_RSVPs;
-
-/**
- *Method to create an instance of Dinner
- */
-+ (id) CreateDinnerWithdinnerid:(NSNumber *)aDinnerID title:(NSString *)aTitle eventdate:(NSDate *)aEventDate description:(NSString *)aDescription hostedby:(NSString *)aHostedBy contactphone:(NSString *)aContactPhone address:(NSString *)aAddress country:(NSString *)aCountry latitude:(NSDecimalNumber *)aLatitude longitude:(NSDecimalNumber *)aLongitude picture_filename:(NSString *)aPicture_Filename dinnertype:(NSString *)aDinnerType
-{
- NerdDinnerModel_Dinner *aDinner = [[NerdDinnerModel_Dinner alloc]init];
-
- aDinner.m_DinnerID = aDinnerID;
-
-
- aDinner.m_Title = aTitle;
-
-
- aDinner.m_EventDate = aEventDate;
-
-
- aDinner.m_Description = aDescription;
-
-
- aDinner.m_HostedBy = aHostedBy;
-
-
- aDinner.m_ContactPhone = aContactPhone;
-
-
- aDinner.m_Address = aAddress;
-
-
- aDinner.m_Country = aCountry;
-
-
- aDinner.m_Latitude = aLatitude;
-
-
- aDinner.m_Longitude = aLongitude;
-
-
- aDinner.m_Picture_Filename = aPicture_Filename;
-
-
- aDinner.m_DinnerType = aDinnerType;
-
- return aDinner;
-}
-/**
- * Initialising object for Dinner
- */
-- (id) init
-{
- self=[self initWithUri:nil];
- return self;
-}
-
-- (id) initWithUri:(NSString*)anUri
-{
- if(self=[super initWithUri:anUri])
- {
- [self setBaseURI:anUri];
- m_OData_hasStream.booleanvalue=NO;
- [m_OData_entityMap setObject:@"RSVP" forKey:@"RSVPs"];
- mProperties *obj;
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.Int32" MaxLength:@"" MinLength:@"" FixedLength:NO Nullable:NO Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_DinnerID"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"50" MinLength:@"" FixedLength:NO Nullable:NO Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_Title"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.DateTime" MaxLength:@"" MinLength:@"" FixedLength:NO Nullable:NO Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_EventDate"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"256" MinLength:@"" FixedLength:NO Nullable:NO Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_Description"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"256" MinLength:@"" FixedLength:NO Nullable:NO Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_HostedBy"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"20" MinLength:@"" FixedLength:NO Nullable:NO Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_ContactPhone"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"50" MinLength:@"" FixedLength:NO Nullable:NO Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_Address"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"30" MinLength:@"" FixedLength:NO Nullable:NO Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_Country"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.Double" MaxLength:@"" MinLength:@"" FixedLength:NO Nullable:NO Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_Latitude"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.Double" MaxLength:@"" MinLength:@"" FixedLength:NO Nullable:NO Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_Longitude"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"256" MinLength:@"" FixedLength:NO Nullable:YES Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_HostedById"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"50" MinLength:@"" FixedLength:NO Nullable:NO Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_Picture_Filename"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.Binary" MaxLength:@"Max" MinLength:@"" FixedLength:NO Nullable:YES Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_Picture_File"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"50" MinLength:@"" FixedLength:NO Nullable:NO Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_DinnerType"];
- [obj release];
-
- [m_OData_entityFKRelation setObject:@"FK_RSVP_Dinners" forKey:@"RSVP"];
-
- NSMutableArray *anEntityKey=[[NSMutableArray alloc]init];
- [anEntityKey addObject:@"DinnerID"];
- [m_OData_entityKey setObject:anEntityKey forKey:@"Dinner"];
- [anEntityKey release];
- }
- return self;
-}
-
--(NSMutableArray *)getSyndicateArray
-{
- NSMutableArray *syndicateArray=[[NSMutableArray alloc]init];
-
- return [syndicateArray autorelease];
-}
--(NerdDinnerModel_Dinner *)getDeepCopy
-{
- NerdDinnerModel_Dinner *obj=[[NerdDinnerModel_Dinner alloc]initWithUri:[self getBaseURI]];
- [obj setDinnerID:[self getDinnerID]];
- [obj setTitle:[self getTitle]];
- [obj setEventDate:[self getEventDate]];
- [obj setDescription:[self getDescription]];
- [obj setHostedBy:[self getHostedBy]];
- [obj setContactPhone:[self getContactPhone]];
- [obj setAddress:[self getAddress]];
- [obj setCountry:[self getCountry]];
- [obj setLatitude:[self getLatitude]];
- [obj setLongitude:[self getLongitude]];
- [obj setHostedById:[self getHostedById]];
- [obj setPicture_Filename:[self getPicture_Filename]];
- [obj setPicture_File:[self getPicture_File]];
- [obj setDinnerType:[self getDinnerType]];
- [obj setRSVPs:[self getRSVPs]];
-
- return [obj autorelease];
-}
-- (void) dealloc
-{
- [m_DinnerID release];
- m_DinnerID = nil;
- [m_Title release];
- m_Title = nil;
- [m_EventDate release];
- m_EventDate = nil;
- [m_Description release];
- m_Description = nil;
- [m_HostedBy release];
- m_HostedBy = nil;
- [m_ContactPhone release];
- m_ContactPhone = nil;
- [m_Address release];
- m_Address = nil;
- [m_Country release];
- m_Country = nil;
- [m_Latitude release];
- m_Latitude = nil;
- [m_Longitude release];
- m_Longitude = nil;
- [m_HostedById release];
- m_HostedById = nil;
- [m_Picture_Filename release];
- m_Picture_Filename = nil;
- [m_Picture_File release];
- m_Picture_File = nil;
- [m_DinnerType release];
- m_DinnerType = nil;
-
- [m_RSVPs release];
- m_RSVPs = nil;
- [super dealloc];
-}
-
-@end
-/**
- * @interface:RSVP
- * @key:RsvpID
- */
-@implementation NerdDinnerModel_RSVP
- @synthesize m_RsvpID;
- @synthesize m_DinnerID;
- @synthesize m_AttendeeName;
- @synthesize m_AttendeeNameId;
- @synthesize m_Dinner;
-
-/**
- *Method to create an instance of RSVP
- */
-+ (id) CreateRSVPWithrsvpid:(NSNumber *)aRsvpID dinnerid:(NSNumber *)aDinnerID attendeename:(NSString *)aAttendeeName
-{
- NerdDinnerModel_RSVP *aRSVP = [[NerdDinnerModel_RSVP alloc]init];
-
- aRSVP.m_RsvpID = aRsvpID;
-
-
- aRSVP.m_DinnerID = aDinnerID;
-
-
- aRSVP.m_AttendeeName = aAttendeeName;
-
- return aRSVP;
-}
-/**
- * Initialising object for RSVP
- */
-- (id) init
-{
- self=[self initWithUri:nil];
- return self;
-}
-
-- (id) initWithUri:(NSString*)anUri
-{
- if(self=[super initWithUri:anUri])
- {
- [self setBaseURI:anUri];
- m_OData_hasStream.booleanvalue=NO;
- [m_OData_entityMap setObject:@"Dinners" forKey:@"Dinner"];
- mProperties *obj;
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.Int32" MaxLength:@"" MinLength:@"" FixedLength:NO Nullable:NO Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_RsvpID"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.Int32" MaxLength:@"" MinLength:@"" FixedLength:NO Nullable:NO Unicode:NO ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_DinnerID"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"30" MinLength:@"" FixedLength:NO Nullable:NO Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_AttendeeName"];
- [obj release];
-
- obj=[[mProperties alloc]initWithEdmType:@"Edm.String" MaxLength:@"256" MinLength:@"" FixedLength:NO Nullable:YES Unicode:YES ConcurrencyMode:@"" FC_TargetPath:@"" FC_KeepInContent:YES FC_SourcePath:@"" FC_ContentKind:@"" FC_NsPrefix:@"" FC_NsUri:@""];
- [m_OData_propertiesMap setObject:obj forKey:@"m_AttendeeNameId"];
- [obj release];
-
- [m_OData_entityFKRelation setObject:@"FK_RSVP_Dinners" forKey:@"Dinners"];
-
- NSMutableArray *anEntityKey=[[NSMutableArray alloc]init];
- [anEntityKey addObject:@"RsvpID"];
- [m_OData_entityKey setObject:anEntityKey forKey:@"RSVP"];
- [anEntityKey release];
- }
- return self;
-}
-
--(NSMutableArray *)getSyndicateArray
-{
- NSMutableArray *syndicateArray=[[NSMutableArray alloc]init];
-
- return [syndicateArray autorelease];
-}
--(NerdDinnerModel_RSVP *)getDeepCopy
-{
- NerdDinnerModel_RSVP *obj=[[NerdDinnerModel_RSVP alloc]initWithUri:[self getBaseURI]];
- [obj setRsvpID:[self getRsvpID]];
- [obj setDinnerID:[self getDinnerID]];
- [obj setAttendeeName:[self getAttendeeName]];
- [obj setAttendeeNameId:[self getAttendeeNameId]];
- [obj setDinner:[self getDinner]];
-
- return [obj autorelease];
-}
-- (void) dealloc
-{
- [m_RsvpID release];
- m_RsvpID = nil;
- [m_DinnerID release];
- m_DinnerID = nil;
- [m_AttendeeName release];
- m_AttendeeName = nil;
- [m_AttendeeNameId release];
- m_AttendeeNameId = nil;
-
- [m_Dinner release];
- m_Dinner = nil;
- [super dealloc];
-}
-
-@end
-
-
-/**
- * Container interface NerdDinnerEntities, Namespace: NerdDinnerModel
- */
-@implementation NerdDinnerEntities
-
- @synthesize m_OData_etag;
-
- @synthesize m_Dinners;
- @synthesize m_RSVPs;
-/**
- * The initializer for NerdDinnerEntities accepting service URI
- */
-- (id) init
-{
- NSString* tmpuri =[[NSString alloc]initWithString:DEFAULT_SERVICE_URL];
- self=[self initWithUri:tmpuri credential:nil];
- [tmpuri release];
- return self;
-}
-
-- (id) initWithUri:(NSString*)anUri credential:(id)acredential
-{
- NSString* tmpuri=nil;
- if([anUri length]==0)
- {
- tmpuri = DEFAULT_SERVICE_URL;
- }
- else
- {
- tmpuri =[NSString stringWithString:anUri];
- }
- if(![tmpuri hasSuffix:@"/"])
- {
- tmpuri=[tmpuri stringByAppendingString:@"/"];
- }
-
- if(self=[super initWithUri:tmpuri credentials:acredential dataServiceVersion:DataServiceVersion])
- {
- [super setServiceNamespace:@"NerdDinnerModel"];
-
- NSMutableArray* tempEntities=[[NSMutableArray alloc]init];
-
- [tempEntities addObject:@"Dinners"];
- [tempEntities addObject:@"RSVPs"];
-
- if([tempEntities count] > 0 )
- {
- [super setEntitiesWithArray:tempEntities];
- }
- [tempEntities release];
-
- NSMutableArray* tempEntitiySetKey=[[NSMutableArray alloc]init];
-
- [tempEntitiySetKey addObject:@"dinners"];
- [tempEntitiySetKey addObject:@"rsvps"];
-
- NSMutableArray* tempEntitiyTypeobj=[[NSMutableArray alloc]init];
-
- [tempEntitiyTypeobj addObject:@"Dinner"];
- [tempEntitiyTypeobj addObject:@"RSVP"];
-
- if( ( [tempEntitiySetKey count] > 0 ) && ( [tempEntitiyTypeobj count] > 0 ) )
- {
- [super setEntitySet2TypeWithObject:tempEntitiyTypeobj forKey:tempEntitiySetKey];
-
- }
-
- [tempEntitiySetKey release];
- [ tempEntitiyTypeobj release];
-
- NSMutableArray* tempEntitiyTypeKey=[[NSMutableArray alloc]init];
-
- [tempEntitiyTypeKey addObject:@"dinner"];
- [tempEntitiyTypeKey addObject:@"rsvp"];
- NSMutableArray* tempEntitySetObj=[[NSMutableArray alloc]init];
-
- [tempEntitySetObj addObject:@"Dinners"];
- [tempEntitySetObj addObject:@"RSVPs"];
-
- if( ( [tempEntitiyTypeKey count] > 0 ) && ( [tempEntitySetObj count] > 0 ) )
- {
- [super setEntityType2SetWithObject:tempEntitySetObj forKey:tempEntitiyTypeKey];
-
- }
- [tempEntitiyTypeKey release];
- [tempEntitySetObj release];
-
- NSMutableArray* foreignKeys=[[NSMutableArray alloc]init];
- [foreignKeys addObject:@"FK_RSVP_Dinners"];
-
- NSMutableArray *arrOfDictionaries=[[NSMutableArray alloc]initWithCapacity:[foreignKeys count]];
-
- NSMutableArray *arr;
-
- arr=[[NSMutableArray alloc]init];
- [arr addObject:[[[NSDictionary alloc]initWithObjectsAndKeys:@"Dinners",@"EndRole",@"Dinner",@"Type",@"1",@"Multiplicity",nil] autorelease]];
- [arr addObject:[[[NSDictionary alloc]initWithObjectsAndKeys:@"RSVP",@"EndRole",@"RSVP",@"Type",@"*",@"Multiplicity",nil] autorelease]];
- [arrOfDictionaries addObject:arr];
- [arr release];
-
- if( ( [foreignKeys count] > 0 ) && ( [arrOfDictionaries count] > 0 ) )
- {
- [super setAssociationforObjects:arrOfDictionaries forKeys:foreignKeys];
- }
- [foreignKeys release];
- [arrOfDictionaries release];
-
- m_Dinners = [[DataServiceQuery alloc]initWithUri:@"Dinners" objectContext: self];
- m_RSVPs = [[DataServiceQuery alloc]initWithUri:@"RSVPs" objectContext: self];
-
- }
- return self;
-}
-
-/*
- * Method for service operation
- */
-- (NSArray *) FindUpcomingDinners
-{
- NSString *aQuery=[self prepareQuery:@"FindUpcomingDinners" parameters:nil];
- return [self executeServiceOperation:aQuery httpMethod:@"GET" isReturnTypeCollection:YES];
-}
-/*
- * Method for service operation
- */
-- (NSArray *) DinnersNearMeWithplaceorzip:(NSString *)placeOrZip
-{
- NSDictionary *params=[[NSDictionary alloc] initWithObjectsAndKeys:placeOrZip,@"placeOrZip",nil];
- NSString *aQuery=[self prepareQuery:@"DinnersNearMe" parameters:params];
- [params release];
-
- return [self executeServiceOperation:aQuery httpMethod:@"GET" isReturnTypeCollection:YES];
-}
-/*
- * Method for service operation
- */
-- (NSString *) SetFileWithdinnerid:(NSNumber *)dinnerID file:(NSData *)file
-{
- NSDictionary *params=[[NSDictionary alloc] initWithObjectsAndKeys:dinnerID,@"dinnerID",file,@"file",nil];
- NSString *aQuery=[self prepareQuery:@"SetFile" parameters:params];
- [params release];
-
- return [self executeServiceOperation:aQuery httpMethod:@"POST" isReturnTypeCollection:NO];
-}
-/*
- * Method for service operation
- */
-- (NSString *) GetFileWithdinnerid:(NSNumber *)dinnerID
-{
- NSDictionary *params=[[NSDictionary alloc] initWithObjectsAndKeys:dinnerID,@"dinnerID",nil];
- NSString *aQuery=[self prepareQuery:@"GetFile" parameters:params];
- [params release];
-
- return [self executeServiceOperation:aQuery httpMethod:@"GET" isReturnTypeCollection:NO];
-}
-
-/**
- * Method returns DataServiceQuery reference for
- * the entityset Dinners
- */
-- (id) dinners
-{
- [self.m_Dinners clearAllOptions];
- return self.m_Dinners;
-}
-
-/**
- * Method returns DataServiceQuery reference for
- * the entityset RSVPs
- */
-- (id) rsvps
-{
- [self.m_RSVPs clearAllOptions];
- return self.m_RSVPs;
-}
-
-/**
- * Methods for adding object to the entityset/collection
- */
-
-- (void) addToDinners:(id)anObject
-{
- [super addObject:@"Dinners" object:anObject];
-}
-
-- (void) addToRSVPs:(id)anObject
-{
- [super addObject:@"RSVPs" object:anObject];
-}
-
-- (void) dealloc
-{
- [ m_OData_etag release];
- m_OData_etag = nil;
-
- [m_Dinners release];
- m_Dinners = nil;
- [m_RSVPs release];
- m_RSVPs = nil;
-
- [super dealloc];
-}
-
-@end

0 comments on commit 0dc3b4c

Please sign in to comment.
Something went wrong with that request. Please try again.