Commit d0f898a0 authored by Grigor Aghabalyan's avatar Grigor Aghabalyan
Browse files

Feat: add list, single api

parent 925add2f
......@@ -9,6 +9,7 @@
/* Begin PBXBuildFile section */
C5D2A725242B077100825031 /* FormsService.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A724242B077100825031 /* FormsService.swift */; };
C5D2A727242B0A2300825031 /* FormsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A726242B0A2300825031 /* FormsResponse.swift */; };
C5D2A729242B12F200825031 /* FormResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D2A728242B12F200825031 /* FormResponse.swift */; };
C5D6914E242AA091004268C3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D6914D242AA091004268C3 /* AppDelegate.swift */; };
C5D69150242AA091004268C3 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5D6914F242AA091004268C3 /* SceneDelegate.swift */; };
C5D69155242AA091004268C3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C5D69153242AA091004268C3 /* Main.storyboard */; };
......@@ -57,6 +58,7 @@
AF4BB414838A78D615C7E656 /* Pods-App16.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App16.release.xcconfig"; path = "Target Support Files/Pods-App16/Pods-App16.release.xcconfig"; sourceTree = "<group>"; };
C5D2A724242B077100825031 /* FormsService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormsService.swift; sourceTree = "<group>"; };
C5D2A726242B0A2300825031 /* FormsResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormsResponse.swift; sourceTree = "<group>"; };
C5D2A728242B12F200825031 /* FormResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormResponse.swift; sourceTree = "<group>"; };
C5D6914A242AA091004268C3 /* App16.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App16.app; sourceTree = BUILT_PRODUCTS_DIR; };
C5D6914D242AA091004268C3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
C5D6914F242AA091004268C3 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
......@@ -340,8 +342,9 @@
isa = PBXGroup;
children = (
C5D2A726242B0A2300825031 /* FormsResponse.swift */,
C5D691BB242AE1F8004268C3 /* FormCreateRequestForm.swift */,
C5D691BF242AE5E2004268C3 /* FormCreateResponse.swift */,
C5D2A728242B12F200825031 /* FormResponse.swift */,
C5D691BB242AE1F8004268C3 /* FormCreateRequestForm.swift */,
C5D691C3242AF0B1004268C3 /* CurentFormRequestForm.swift */,
);
path = Form;
......@@ -496,6 +499,7 @@
C5D691BE242AE510004268C3 /* FormCreateService.swift in Sources */,
C5D691C2242AF07F004268C3 /* CurrentFormService.swift in Sources */,
C5D69170242AA4E9004268C3 /* Config.swift in Sources */,
C5D2A729242B12F200825031 /* FormResponse.swift in Sources */,
C5D691C4242AF0B1004268C3 /* CurentFormRequestForm.swift in Sources */,
C5D691D0242AFEB0004268C3 /* DatePickerViewController.swift in Sources */,
C5D6916E242AA4D2004268C3 /* Settings.swift in Sources */,
......
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "ItunesArtwork@2x.png",
"scale" : "1x"
}
],
......
......@@ -47,11 +47,11 @@
<array>
<string>armv7</string>
</array>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
......
......@@ -71,7 +71,5 @@ class FormCreateRequestForm: Mappable {
visitingLongitude <- map["visiting_longitude"]
visitingReason <- map["visiting_reason"]
plannedReturnDatetime <- map["planned_return_datetime"]
}
}
......@@ -10,40 +10,14 @@ import ObjectMapper
class FormCreateResponse: Mappable {
var deviceToken: String?
var firstName: String?
var lastName: String?
var middleName: String?
var outAddress: String?
var outLatitude: Double?
var outLongitude: Double?
var outDatetime: String?
var visitingAddressAndName: String?
var visitingLatitude: Double?
var visitingLongitude: Double?
var visitingReason: String?
var plannedReturnDatetime: String?
var createdAt: String?
var data: FormResponse?
required init?(map: Map) { }
init() { }
func mapping(map: Map) {
deviceToken <- map["device_token"]
firstName <- map["first_name"]
lastName <- map["last_name"]
middleName <- map["middle_name"]
outAddress <- map["out_address"]
outLatitude <- map["out_latitude"]
outLongitude <- map["out_longitude"]
outDatetime <- map["out_datetime"]
visitingAddressAndName <- map["visiting_address_and_name"]
visitingLatitude <- map["visiting_latitude"]
visitingLongitude <- map["visiting_longitude"]
visitingReason <- map["visiting_reason"]
plannedReturnDatetime <- map["planned_return_datetime"]
createdAt <- map["created_at"]
data <- map["data"]
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment