PDA

View Full Version : How Should I best Implement This




teguh123
Apr 1, 2011, 05:05 AM
I have a vb.net class Restaurant

Class Restaurant
Public Property Title As String
Public Property BuildingAddress As String
Public Property Street As String
Public Property Districts As Generic.List(Of String)
Public Property City As String
Public Property Country As String

Public Property LatitudeLongitude As LatitudeLongitude
Public Property Rating As Rating
Public Property imageUrls As Generic.List(Of String)
Public Property URLs As Generic.List(Of String)
Public Property CurrentlyWorkedURL As String

Public Property Reviews As Generic.List(Of Review)
Public Property ZIP As String
Public Property Categories As Generic.List(Of String)
Public Property Phone As String
Public Property Website As String
Public Property Email As String
Public Property Price As String
Public Property openingHour As String
Public Property Promotions As Generic.List(Of Promotion)
Public Property SomethingWrong As Boolean
Public Const ProfileFile As String = "profiles.txt"
Public Shared Splitter As Char() = " ,.'()#-/&;""".ToCharArray
Public Shared WordCount As Generic.Dictionary(Of String, Double)

Now,

I want to create an Iphone Version of this.

Should I

1. Create badger equivalent classes in Objective C
2. Use databases management system or something like Objective C Core?

Which one will show up with less code?

Is there some form of Code generation for complex objects like Restaurant?