Showing
1 changed file
with
330 additions
and
0 deletions
... | @@ -711,4 +711,334 @@ public class swiftApi { | ... | @@ -711,4 +711,334 @@ public class swiftApi { |
711 | public func verifyTicketAsync(guid: String, ticket: String, _ verifyTicketCallback: @escaping (_ verifyTicketData: VerifyTicketResponseModel?) -> Void) -> Void { | 711 | public func verifyTicketAsync(guid: String, ticket: String, _ verifyTicketCallback: @escaping (_ verifyTicketData: VerifyTicketResponseModel?) -> Void) -> Void { |
712 | VerifyTicketModel().verifyTicket(guid: guid, ticket: ticket, verifyTicketCallback) | 712 | VerifyTicketModel().verifyTicket(guid: guid, ticket: ticket, verifyTicketCallback) |
713 | } | 713 | } |
714 | + | ||
715 | + | ||
716 | + public class WarplyPacingModel { | ||
717 | + private var tree_co2_year: Double | ||
718 | + private var tree_co2_month: Double | ||
719 | + private var tree_co2_week: Double | ||
720 | + private var tree_co2_day: Double | ||
721 | + | ||
722 | + private var car_distance_year: Double | ||
723 | + private var car_distance_month: Double | ||
724 | + private var car_distance_week: Double | ||
725 | + private var car_distance_day: Double | ||
726 | + | ||
727 | + private var car_consumption_year: Double | ||
728 | + private var car_consumption_month: Double | ||
729 | + private var car_consumption_week: Double | ||
730 | + private var car_consumption_day: Double | ||
731 | + | ||
732 | + private var car_co2_year: Double | ||
733 | + private var car_co2_month: Double | ||
734 | + private var car_co2_week: Double | ||
735 | + private var car_co2_day: Double | ||
736 | + | ||
737 | + private var walking_distance_year: Double | ||
738 | + private var walking_distance_month: Double | ||
739 | + private var walking_distance_week: Double | ||
740 | + private var walking_distance_day: Double | ||
741 | + | ||
742 | + private var liters_saved_year: Double | ||
743 | + private var liters_saved_month: Double | ||
744 | + private var liters_saved_week: Double | ||
745 | + private var liters_saved_day: Double | ||
746 | + | ||
747 | + private var co2_saved_year: Double | ||
748 | + private var co2_saved_month: Double | ||
749 | + private var co2_saved_week: Double | ||
750 | + private var co2_saved_day: Double | ||
751 | + | ||
752 | + | ||
753 | + public init() { | ||
754 | + self.tree_co2_year = 0.0 | ||
755 | + self.tree_co2_month = 0.0 | ||
756 | + self.tree_co2_week = 0.0 | ||
757 | + self.tree_co2_day = 0.0 | ||
758 | + | ||
759 | + self.car_distance_year = 0.0 | ||
760 | + self.car_distance_month = 0.0 | ||
761 | + self.car_distance_week = 0.0 | ||
762 | + self.car_distance_day = 0.0 | ||
763 | + | ||
764 | + self.car_consumption_year = 0.0 | ||
765 | + self.car_consumption_month = 0.0 | ||
766 | + self.car_consumption_week = 0.0 | ||
767 | + self.car_consumption_day = 0.0 | ||
768 | + | ||
769 | + self.car_co2_year = 0.0 | ||
770 | + self.car_co2_month = 0.0 | ||
771 | + self.car_co2_week = 0.0 | ||
772 | + self.car_co2_day = 0.0 | ||
773 | + | ||
774 | + self.walking_distance_year = 0.0 | ||
775 | + self.walking_distance_month = 0.0 | ||
776 | + self.walking_distance_week = 0.0 | ||
777 | + self.walking_distance_day = 0.0 | ||
778 | + | ||
779 | + self.liters_saved_year = 0.0 | ||
780 | + self.liters_saved_month = 0.0 | ||
781 | + self.liters_saved_week = 0.0 | ||
782 | + self.liters_saved_day = 0.0 | ||
783 | + | ||
784 | + self.co2_saved_year = 0.0 | ||
785 | + self.co2_saved_month = 0.0 | ||
786 | + self.co2_saved_week = 0.0 | ||
787 | + self.co2_saved_day = 0.0 | ||
788 | + | ||
789 | + } | ||
790 | + | ||
791 | + public var _tree_co2_year: Double { | ||
792 | + get { // getter | ||
793 | + return self.tree_co2_year | ||
794 | + } | ||
795 | + set(newValue) { //setter | ||
796 | + self.tree_co2_year = newValue | ||
797 | + } | ||
798 | + } | ||
799 | + | ||
800 | + public var _tree_co2_month: Double { | ||
801 | + get { // getter | ||
802 | + return self.tree_co2_month | ||
803 | + } | ||
804 | + set(newValue) { //setter | ||
805 | + self.tree_co2_month = newValue | ||
806 | + } | ||
807 | + } | ||
808 | + | ||
809 | + public var _tree_co2_week: Double { | ||
810 | + get { // getter | ||
811 | + return self.tree_co2_week | ||
812 | + } | ||
813 | + set(newValue) { //setter | ||
814 | + self.tree_co2_week = newValue | ||
815 | + } | ||
816 | + } | ||
817 | + | ||
818 | + public var _tree_co2_day: Double { | ||
819 | + get { // getter | ||
820 | + return self.tree_co2_day | ||
821 | + } | ||
822 | + set(newValue) { //setter | ||
823 | + self.tree_co2_day = newValue | ||
824 | + } | ||
825 | + } | ||
826 | + | ||
827 | + public var _car_distance_year: Double { | ||
828 | + get { // getter | ||
829 | + return self.car_distance_year | ||
830 | + } | ||
831 | + set(newValue) { //setter | ||
832 | + self.car_distance_year = newValue | ||
833 | + } | ||
834 | + } | ||
835 | + | ||
836 | + public var _car_distance_month: Double { | ||
837 | + get { // getter | ||
838 | + return self.car_distance_month | ||
839 | + } | ||
840 | + set(newValue) { //setter | ||
841 | + self.car_distance_month = newValue | ||
842 | + } | ||
843 | + } | ||
844 | + | ||
845 | + public var _car_distance_week: Double { | ||
846 | + get { // getter | ||
847 | + return self.car_distance_week | ||
848 | + } | ||
849 | + set(newValue) { //setter | ||
850 | + self.car_distance_week = newValue | ||
851 | + } | ||
852 | + } | ||
853 | + | ||
854 | + public var _car_distance_day: Double { | ||
855 | + get { // getter | ||
856 | + return self.car_distance_day | ||
857 | + } | ||
858 | + set(newValue) { //setter | ||
859 | + self.car_distance_day = newValue | ||
860 | + } | ||
861 | + } | ||
862 | + | ||
863 | + public var _car_consumption_year: Double { | ||
864 | + get { // getter | ||
865 | + return self.car_consumption_year | ||
866 | + } | ||
867 | + set(newValue) { //setter | ||
868 | + self.car_consumption_year = newValue | ||
869 | + } | ||
870 | + } | ||
871 | + | ||
872 | + public var _car_consumption_month: Double { | ||
873 | + get { // getter | ||
874 | + return self.car_consumption_month | ||
875 | + } | ||
876 | + set(newValue) { //setter | ||
877 | + self.car_consumption_month = newValue | ||
878 | + } | ||
879 | + } | ||
880 | + | ||
881 | + public var _car_consumption_week: Double { | ||
882 | + get { // getter | ||
883 | + return self.car_consumption_week | ||
884 | + } | ||
885 | + set(newValue) { //setter | ||
886 | + self.car_consumption_week = newValue | ||
887 | + } | ||
888 | + } | ||
889 | + | ||
890 | + public var _car_consumption_day: Double { | ||
891 | + get { // getter | ||
892 | + return self.car_consumption_day | ||
893 | + } | ||
894 | + set(newValue) { //setter | ||
895 | + self.car_consumption_day = newValue | ||
896 | + } | ||
897 | + } | ||
898 | + | ||
899 | + public var _car_co2_year: Double { | ||
900 | + get { // getter | ||
901 | + return self.car_co2_year | ||
902 | + } | ||
903 | + set(newValue) { //setter | ||
904 | + self.car_co2_year = newValue | ||
905 | + } | ||
906 | + } | ||
907 | + | ||
908 | + public var _car_co2_month: Double { | ||
909 | + get { // getter | ||
910 | + return self.car_co2_month | ||
911 | + } | ||
912 | + set(newValue) { //setter | ||
913 | + self.car_co2_month = newValue | ||
914 | + } | ||
915 | + } | ||
916 | + | ||
917 | + public var _car_co2_week: Double { | ||
918 | + get { // getter | ||
919 | + return self.car_co2_week | ||
920 | + } | ||
921 | + set(newValue) { //setter | ||
922 | + self.car_co2_week = newValue | ||
923 | + } | ||
924 | + } | ||
925 | + | ||
926 | + public var _car_co2_day: Double { | ||
927 | + get { // getter | ||
928 | + return self.car_co2_day | ||
929 | + } | ||
930 | + set(newValue) { //setter | ||
931 | + self.car_co2_day = newValue | ||
932 | + } | ||
933 | + } | ||
934 | + | ||
935 | + public var _walking_distance_year: Double { | ||
936 | + get { // getter | ||
937 | + return self.walking_distance_year | ||
938 | + } | ||
939 | + set(newValue) { //setter | ||
940 | + self.walking_distance_year = newValue | ||
941 | + } | ||
942 | + } | ||
943 | + | ||
944 | + public var _walking_distance_month: Double { | ||
945 | + get { // getter | ||
946 | + return self.walking_distance_month | ||
947 | + } | ||
948 | + set(newValue) { //setter | ||
949 | + self.walking_distance_month = newValue | ||
950 | + } | ||
951 | + } | ||
952 | + | ||
953 | + public var _walking_distance_week: Double { | ||
954 | + get { // getter | ||
955 | + return self.walking_distance_week | ||
956 | + } | ||
957 | + set(newValue) { //setter | ||
958 | + self.walking_distance_week = newValue | ||
959 | + } | ||
960 | + } | ||
961 | + | ||
962 | + public var _walking_distance_day: Double { | ||
963 | + get { // getter | ||
964 | + return self.walking_distance_day | ||
965 | + } | ||
966 | + set(newValue) { //setter | ||
967 | + self.walking_distance_day = newValue | ||
968 | + } | ||
969 | + } | ||
970 | + | ||
971 | + public var _liters_saved_year: Double { | ||
972 | + get { // getter | ||
973 | + return self.liters_saved_year | ||
974 | + } | ||
975 | + set(newValue) { //setter | ||
976 | + self.liters_saved_year = newValue | ||
977 | + } | ||
978 | + } | ||
979 | + | ||
980 | + public var _liters_saved_month: Double { | ||
981 | + get { // getter | ||
982 | + return self.liters_saved_month | ||
983 | + } | ||
984 | + set(newValue) { //setter | ||
985 | + self.liters_saved_month = newValue | ||
986 | + } | ||
987 | + } | ||
988 | + | ||
989 | + public var _liters_saved_week: Double { | ||
990 | + get { // getter | ||
991 | + return self.liters_saved_week | ||
992 | + } | ||
993 | + set(newValue) { //setter | ||
994 | + self.liters_saved_week = newValue | ||
995 | + } | ||
996 | + } | ||
997 | + | ||
998 | + public var _liters_saved_day: Double { | ||
999 | + get { // getter | ||
1000 | + return self.liters_saved_day | ||
1001 | + } | ||
1002 | + set(newValue) { //setter | ||
1003 | + self.liters_saved_day = newValue | ||
1004 | + } | ||
1005 | + } | ||
1006 | + | ||
1007 | + public var _co2_saved_year: Double { | ||
1008 | + get { // getter | ||
1009 | + return self.co2_saved_year | ||
1010 | + } | ||
1011 | + set(newValue) { //setter | ||
1012 | + self.co2_saved_year = newValue | ||
1013 | + } | ||
1014 | + } | ||
1015 | + | ||
1016 | + public var _co2_saved_month: Double { | ||
1017 | + get { // getter | ||
1018 | + return self.co2_saved_month | ||
1019 | + } | ||
1020 | + set(newValue) { //setter | ||
1021 | + self.co2_saved_month = newValue | ||
1022 | + } | ||
1023 | + } | ||
1024 | + | ||
1025 | + public var _co2_saved_week: Double { | ||
1026 | + get { // getter | ||
1027 | + return self.co2_saved_week | ||
1028 | + } | ||
1029 | + set(newValue) { //setter | ||
1030 | + self.co2_saved_week = newValue | ||
1031 | + } | ||
1032 | + } | ||
1033 | + | ||
1034 | + public var _co2_saved_day: Double { | ||
1035 | + get { // getter | ||
1036 | + return self.co2_saved_day | ||
1037 | + } | ||
1038 | + set(newValue) { //setter | ||
1039 | + self.co2_saved_day = newValue | ||
1040 | + } | ||
1041 | + } | ||
1042 | + } | ||
1043 | + | ||
714 | } | 1044 | } | ... | ... |
-
Please register or login to post a comment