Exemplo n.º 1
0
 def __init__(self, d):
     self.TripID = int(d["TripID"])
     self.ObserverID = int(d["ObserverID"])
     self.ObsLocationID = int(d["ObsLocationID"])
     self.GeoHazardTID = int(d["GeoHazardTID"])
     self.TripTypeTID = int(d["TripTypeTID"])
     self.ObservationExpectedTime = fe.unix_time_2_normal( int(d["ObservationExpectedTime"][6:-2]) )
     self.Comment = d["Comment"]
     self.IsFinished = bool(d["IsFinished"])
     self.TripRegistrationTime = fe.unix_time_2_normal( int(d["TripRegistrationTime"][6:-2]) )
     if d["TripFinishedTime"] is not None:
         self.TripFinishedTime = fe.unix_time_2_normal( int(d["TripFinishedTime"][6:-2]) )
     else:
         self.TripFinishedTime = None
     self.DeviceID = d["DeviceID"]
     self.TripTypeName = kdv.get_name("TripTypeKDV", self.TripTypeTID)
Exemplo n.º 2
0
 def __init__(self, d):
     self.RegID = int(d["RegID"])
     self.DtObsTime = fe.unix_time_2_normal(d["DtObsTime"])
     self.DtRegTime = fe.unix_time_2_normal(d["DtRegTime"])
     if d["DtChangeTime"] is not None:
         self.DtChangeTime = fe.unix_time_2_normal(d["DtChangeTime"])
     else:
         self.DtChangeTime = None
     if d["DeletedDate"] is not None:
         self.DeletedDate = fe.unix_time_2_normal(d["DeletedDate"])
     else:
         self.DeletedDate = None
     self.ObserverID = int(d["ObserverID"])
     self.NickName = None  # added later
     self.CompetenceLevelTID = int(d["CompetenceLevelTID"])
     if d["ObserverGroupID"] is not None:
         self.ObserverGroupID = int(d["ObserverGroupID"])
     else:
         self.ObserverGroupID = None
     self.GeoHazardTID = int(d['GeoHazardTID'])
     self.ObsLocationID = int(d["ObsLocationID"])
     self.ApplicationID = d["ApplicationId"]
Exemplo n.º 3
0
    def __init__(self, d):

        self.ObsLocationID = int(d["ObsLocationID"])
        self.DtRegTime = fe.unix_time_2_normal(d["DtRegTime"])
        self.LocationName = d["LocationName"]
        self.LocationDescription = d["LocationDescription"]
        self.UTMSourceName = d["UTMSourceName"]
        self.UTMSourceTID = d["UTMSourceTID"]
        self.UTMEast = d["UTMEast"]
        self.UTMNorth = d["UTMNorth"]
        self.UTMUncertainty = d["UTMUncertainty"]
        self.Comment = d["Comment"]
        self.ForecastRegionTID = d["ForecastRegionTID"]
        self.ForecastRegionName = d["ForecastRegionName"]
        self.MunicipalName = d["MunicipalName"]