def snedNotification(builder):
     service = SendPushNotificationService()
     m_converter = ConvertJSONToPb()
     m_convertPbtoJson = ConvertPbToJSON()
     builder = m_converter.converjsontoPBProper(response=builder,
                                                instanceType=pushnotification_pb2.PushNotificationRequestPb())
     return m_convertPbtoJson.converPbtojson(service.sendNotification(pushNotificationRequestPb=builder))
 def getLogin(builder):
     service = LoginModuleService()
     m_converter = ConvertJSONToPb()
     m_convertPbtoJson = ConvertPbToJSON()
     builder = m_converter.converjsontoPBProper(
         response=builder, instanceType=login_pb2.LoginRequestPb())
     return m_convertPbtoJson.converPbtojson(
         service.login(loginRequestPb=builder))
 def createRegistrationworker(builder):
     service = RegistrationWorkerService()
     m_converter = ConvertJSONToPb()
     m_convertPbtoJson = ConvertPbToJSON()
     builder = m_converter.converjsontoPBProper(
         response=builder,
         instanceType=registration_pb2.RegistrationRequestPb())
     return m_convertPbtoJson.converPbtojson(
         service.registration(registrationRequestPb=builder))
 def getConsumer(id):
     service = ConsumerService()
     m_convertPbtoJson = ConvertPbToJSON()
     return m_convertPbtoJson.converPbtojson(service.get(id=id))
 def getWorkerType(id):
     service = WorkerTypeService()
     m_convertPbtoJson = ConvertPbToJSON()
     return m_convertPbtoJson.converPbtojson(service.get(id=id))
Beispiel #6
0
 def getPushNotification(id):
     service = PushNotificationService()
     m_convertPbtoJson = ConvertPbToJSON()
     return m_convertPbtoJson.converPbtojson(service.get(id=id))