xMova Android

MESSAGES

Versão 2.19+

Esta funcionalidade permite que o xMova receba e envie mensagens para a Web.

Atributos:

  • message: Usado no app, habilita a funcionalidade de envio e recebimento de mensagens

Langs :

  • FixedKeyMessagesScreenTitle: Título exibido na tela que exibe as mensagens
  • FixedKeyHttpReadingData: Exibida enquanto estão sendo carregadas as mensagens na tela
  • FixedKeyMessagesRead: Exibida na ação/label que apresenta as mensagens lidas
  • FixedKeyMessagesUnRead: Exibida na ação que apresenta as novas mensagens
  • FixedKeyMessagesSent: Exibida na ação que apresenta as mensagens enviadas
  • FixedKeyMessagesNew: Exibida na ação que cria uma nova mensagem para ser enviada
  • FixedKeyMessagesCount: Exibida no label que apresenta a quantidade de mensagens existente
  • FixedKeyNewMessagesReceived: Exibida quando existem novas mensagens para serem lidas

Entidades:

Entidade _MESSAGE (Criada pelo parser), usada na troca de mensagens entre o xMova e o Web Service.:

_MESSAGE sync=in|backgroundIn|out
        id int
        title String
        text Text
        response Text
        sent date
        received date
        showed date
        read date
        disableResponse boolean

Exemplo de Configuração:

App appCode=X
        id 30506
        name xMova Crud
        version 1.0.188
        intVersion 189
        install type=fillAuth inputEntity=AuthInput
        bluetooth marte
        message
        server
                jsonServiceApi url=%jsonServiceApiUrl
                sqlDataSource agro
                defaultOnlineValidator jsonServiceApi
                defaultDataSource jsonServiceApi
                defaultReceiver jsonServiceApi
                versionControl Crc

Exemplo de um recebimento de registro de _MESSAGE:

{
        "name": "_MESSAGE",
        "records": [{
                "id": 1,
                "title": "Aviso",
                "text": "Mensagem 1"
        }]
}

Exemplo de um envio de registro de _MESSAGE:

{
        "type": "_MESSAGE",
        "records": [{
                "id": 9,
                "title": "What is Lorem Ipsum?",
                "text": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
                "response": "Boa tarde",
                "disableResponse": 0,
                "sentType": "S",
                "sent": "04/05/2018 14:45:16",
                "XDATE-sent": {
                        "date": "04/05/2018 14:45:16",
                        "gpsMillis": 1525455918424,
                        "deviceMillis": 1525455942286,
                        "timeZone": "America/Sao_Paulo",
                        "type": "S",
                        "millis": 1525455916324
                },
                "receivedType": "S",
                "received": "27/04/2018 15:45:34",
                "XDATE-received": {
                        "date": "27/04/2018 15:45:34",
                        "gpsMillis": 0,
                        "deviceMillis": 0,
                        "timeZone": "America/Sao_Paulo",
                        "type": "S",
                        "millis": 1524854734000
                },
                "showedType": "S",
                "showed": "27/04/2018 15:47:43",
                "XDATE-showed": {
                        "date": "27/04/2018 15:47:43",
                        "gpsMillis": 0,
                        "deviceMillis": 0,
                        "timeZone": "America/Sao_Paulo",
                        "type": "S",
                        "millis": 1524854863000
                },
                "readType": "S",
                "read": "04/05/2018 14:44:27",
                "XDATE-read": {
                        "date": "04/05/2018 14:44:27",
                        "gpsMillis": 1525455869849,
                        "deviceMillis": 1525455893710,
                        "timeZone": "America/Sao_Paulo",
                        "type": "S",
                        "millis": 1525455867628
                }
        }]
}