Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-05-25 13:08:02 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e6f46dfe5b30b6fe7afbcdfb3c95329f888596d
6e6f46df
1 parent
cbb31dab
add WarplyPacingModel
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
330 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
6e6f46d
...
...
@@ -711,4 +711,334 @@ public class swiftApi {
public
func
verifyTicketAsync
(
guid
:
String
,
ticket
:
String
,
_
verifyTicketCallback
:
@escaping
(
_
verifyTicketData
:
VerifyTicketResponseModel
?)
->
Void
)
->
Void
{
VerifyTicketModel
()
.
verifyTicket
(
guid
:
guid
,
ticket
:
ticket
,
verifyTicketCallback
)
}
public
class
WarplyPacingModel
{
private
var
tree_co2_year
:
Double
private
var
tree_co2_month
:
Double
private
var
tree_co2_week
:
Double
private
var
tree_co2_day
:
Double
private
var
car_distance_year
:
Double
private
var
car_distance_month
:
Double
private
var
car_distance_week
:
Double
private
var
car_distance_day
:
Double
private
var
car_consumption_year
:
Double
private
var
car_consumption_month
:
Double
private
var
car_consumption_week
:
Double
private
var
car_consumption_day
:
Double
private
var
car_co2_year
:
Double
private
var
car_co2_month
:
Double
private
var
car_co2_week
:
Double
private
var
car_co2_day
:
Double
private
var
walking_distance_year
:
Double
private
var
walking_distance_month
:
Double
private
var
walking_distance_week
:
Double
private
var
walking_distance_day
:
Double
private
var
liters_saved_year
:
Double
private
var
liters_saved_month
:
Double
private
var
liters_saved_week
:
Double
private
var
liters_saved_day
:
Double
private
var
co2_saved_year
:
Double
private
var
co2_saved_month
:
Double
private
var
co2_saved_week
:
Double
private
var
co2_saved_day
:
Double
public
init
()
{
self
.
tree_co2_year
=
0.0
self
.
tree_co2_month
=
0.0
self
.
tree_co2_week
=
0.0
self
.
tree_co2_day
=
0.0
self
.
car_distance_year
=
0.0
self
.
car_distance_month
=
0.0
self
.
car_distance_week
=
0.0
self
.
car_distance_day
=
0.0
self
.
car_consumption_year
=
0.0
self
.
car_consumption_month
=
0.0
self
.
car_consumption_week
=
0.0
self
.
car_consumption_day
=
0.0
self
.
car_co2_year
=
0.0
self
.
car_co2_month
=
0.0
self
.
car_co2_week
=
0.0
self
.
car_co2_day
=
0.0
self
.
walking_distance_year
=
0.0
self
.
walking_distance_month
=
0.0
self
.
walking_distance_week
=
0.0
self
.
walking_distance_day
=
0.0
self
.
liters_saved_year
=
0.0
self
.
liters_saved_month
=
0.0
self
.
liters_saved_week
=
0.0
self
.
liters_saved_day
=
0.0
self
.
co2_saved_year
=
0.0
self
.
co2_saved_month
=
0.0
self
.
co2_saved_week
=
0.0
self
.
co2_saved_day
=
0.0
}
public
var
_tree_co2_year
:
Double
{
get
{
// getter
return
self
.
tree_co2_year
}
set
(
newValue
)
{
//setter
self
.
tree_co2_year
=
newValue
}
}
public
var
_tree_co2_month
:
Double
{
get
{
// getter
return
self
.
tree_co2_month
}
set
(
newValue
)
{
//setter
self
.
tree_co2_month
=
newValue
}
}
public
var
_tree_co2_week
:
Double
{
get
{
// getter
return
self
.
tree_co2_week
}
set
(
newValue
)
{
//setter
self
.
tree_co2_week
=
newValue
}
}
public
var
_tree_co2_day
:
Double
{
get
{
// getter
return
self
.
tree_co2_day
}
set
(
newValue
)
{
//setter
self
.
tree_co2_day
=
newValue
}
}
public
var
_car_distance_year
:
Double
{
get
{
// getter
return
self
.
car_distance_year
}
set
(
newValue
)
{
//setter
self
.
car_distance_year
=
newValue
}
}
public
var
_car_distance_month
:
Double
{
get
{
// getter
return
self
.
car_distance_month
}
set
(
newValue
)
{
//setter
self
.
car_distance_month
=
newValue
}
}
public
var
_car_distance_week
:
Double
{
get
{
// getter
return
self
.
car_distance_week
}
set
(
newValue
)
{
//setter
self
.
car_distance_week
=
newValue
}
}
public
var
_car_distance_day
:
Double
{
get
{
// getter
return
self
.
car_distance_day
}
set
(
newValue
)
{
//setter
self
.
car_distance_day
=
newValue
}
}
public
var
_car_consumption_year
:
Double
{
get
{
// getter
return
self
.
car_consumption_year
}
set
(
newValue
)
{
//setter
self
.
car_consumption_year
=
newValue
}
}
public
var
_car_consumption_month
:
Double
{
get
{
// getter
return
self
.
car_consumption_month
}
set
(
newValue
)
{
//setter
self
.
car_consumption_month
=
newValue
}
}
public
var
_car_consumption_week
:
Double
{
get
{
// getter
return
self
.
car_consumption_week
}
set
(
newValue
)
{
//setter
self
.
car_consumption_week
=
newValue
}
}
public
var
_car_consumption_day
:
Double
{
get
{
// getter
return
self
.
car_consumption_day
}
set
(
newValue
)
{
//setter
self
.
car_consumption_day
=
newValue
}
}
public
var
_car_co2_year
:
Double
{
get
{
// getter
return
self
.
car_co2_year
}
set
(
newValue
)
{
//setter
self
.
car_co2_year
=
newValue
}
}
public
var
_car_co2_month
:
Double
{
get
{
// getter
return
self
.
car_co2_month
}
set
(
newValue
)
{
//setter
self
.
car_co2_month
=
newValue
}
}
public
var
_car_co2_week
:
Double
{
get
{
// getter
return
self
.
car_co2_week
}
set
(
newValue
)
{
//setter
self
.
car_co2_week
=
newValue
}
}
public
var
_car_co2_day
:
Double
{
get
{
// getter
return
self
.
car_co2_day
}
set
(
newValue
)
{
//setter
self
.
car_co2_day
=
newValue
}
}
public
var
_walking_distance_year
:
Double
{
get
{
// getter
return
self
.
walking_distance_year
}
set
(
newValue
)
{
//setter
self
.
walking_distance_year
=
newValue
}
}
public
var
_walking_distance_month
:
Double
{
get
{
// getter
return
self
.
walking_distance_month
}
set
(
newValue
)
{
//setter
self
.
walking_distance_month
=
newValue
}
}
public
var
_walking_distance_week
:
Double
{
get
{
// getter
return
self
.
walking_distance_week
}
set
(
newValue
)
{
//setter
self
.
walking_distance_week
=
newValue
}
}
public
var
_walking_distance_day
:
Double
{
get
{
// getter
return
self
.
walking_distance_day
}
set
(
newValue
)
{
//setter
self
.
walking_distance_day
=
newValue
}
}
public
var
_liters_saved_year
:
Double
{
get
{
// getter
return
self
.
liters_saved_year
}
set
(
newValue
)
{
//setter
self
.
liters_saved_year
=
newValue
}
}
public
var
_liters_saved_month
:
Double
{
get
{
// getter
return
self
.
liters_saved_month
}
set
(
newValue
)
{
//setter
self
.
liters_saved_month
=
newValue
}
}
public
var
_liters_saved_week
:
Double
{
get
{
// getter
return
self
.
liters_saved_week
}
set
(
newValue
)
{
//setter
self
.
liters_saved_week
=
newValue
}
}
public
var
_liters_saved_day
:
Double
{
get
{
// getter
return
self
.
liters_saved_day
}
set
(
newValue
)
{
//setter
self
.
liters_saved_day
=
newValue
}
}
public
var
_co2_saved_year
:
Double
{
get
{
// getter
return
self
.
co2_saved_year
}
set
(
newValue
)
{
//setter
self
.
co2_saved_year
=
newValue
}
}
public
var
_co2_saved_month
:
Double
{
get
{
// getter
return
self
.
co2_saved_month
}
set
(
newValue
)
{
//setter
self
.
co2_saved_month
=
newValue
}
}
public
var
_co2_saved_week
:
Double
{
get
{
// getter
return
self
.
co2_saved_week
}
set
(
newValue
)
{
//setter
self
.
co2_saved_week
=
newValue
}
}
public
var
_co2_saved_day
:
Double
{
get
{
// getter
return
self
.
co2_saved_day
}
set
(
newValue
)
{
//setter
self
.
co2_saved_day
=
newValue
}
}
}
}
...
...
Please
register
or
login
to post a comment