Пример #1
0
        public static async Task <EquipmentResponse> DeleteNotificationExample(int nodeId)
        {
            TelematicsV2      telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            EquipmentResponse response     = await telematicsV2.Disenroll(nodeId);

            return(response);
        }
Пример #2
0
        public static async Task <NodeNotificationResponse> GetNotificationUserForNodeExample(int nodeId)
        {
            TelematicsV2             telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            NodeNotificationResponse response     = await telematicsV2.GetNotificationUserForNode(nodeId);

            return(response);
        }
Пример #3
0
        public static async Task <NodeNotificationResponse> EnrollSnsNotificationExample(int telematicsNode, SNSRequest snsRequest)
        {
            TelematicsV2             telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            NodeNotificationResponse response     = await telematicsV2.PostNotificationEnrollmentSns(telematicsNode, snsRequest);

            return(response);
        }
Пример #4
0
        public static async Task <NodeNotificationResponse> EnrollPostNotificationExample(int telematicsNode, PostRequest postRequest)
        {
            TelematicsV2             telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            NodeNotificationResponse response     = await telematicsV2.EnrollPostNotification(telematicsNode, postRequest);

            return(response);
        }
Пример #5
0
        public static async Task <PostSendFileResponse> UploadFileExample(string fileName, FileInfo file)
        {
            TelematicsV2         telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            PostSendFileResponse response     = await telematicsV2.PostSendFiles(telematicsNode, file);

            return(response);
        }
Пример #6
0
        public static async Task <FileInfo> DownloadFileExample(string fileId)
        {
            TelematicsV2 telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            FileInfo     fileInfo     = await telematicsV2.GetDownloadFilesWithoutConversion(telematicsNode, fileId);

            return(fileInfo);
        }
Пример #7
0
        public static async Task <GetEquipmentRegisterResponse> RegisterExample()
        {
            TelematicsV2 telematicsV2             = new TelematicsV2(publicKey, privateKey, userKey);
            GetEquipmentRegisterResponse response = await telematicsV2.GetEquipmentRegister();

            return(response);
        }
Пример #8
0
        public static async Task <TelematicsNodeResponse> GetTelematicsNode(int nodeId)
        {
            TelematicsV2           telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            TelematicsNodeResponse response     = await telematicsV2.GetTelematicsNode(nodeId);

            return(response);
        }
Пример #9
0
        public static async Task <PostPlantingSummaryResponse> PostTelematicsNodePlantingSummaryExample(int nodeId, PostPlantingSummaryRequest postPlantingSummaryRequest)
        {
            TelematicsV2 telematicsV2            = new TelematicsV2(publicKey, privateKey, userKey);
            PostPlantingSummaryResponse response = await telematicsV2.PostTelematicsNodePlantingSummary(nodeId, postPlantingSummaryRequest);

            return(response);
        }
Пример #10
0
        public static async Task <GetPlantingSummaryStatusResponse> GetTelematicsNodePlantingSummaryStatusExample(int nodeId, string trackingCode)
        {
            TelematicsV2 telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            GetPlantingSummaryStatusResponse response = await telematicsV2.GetTelematicsNodePlantingSummaryStatus(nodeId, trackingCode);

            return(response);
        }
Пример #11
0
        public static async Task <GetFieldResponse> GetTelematicsNodeFieldsExample(int nodeId)
        {
            TelematicsV2     telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            GetFieldResponse response     = await telematicsV2.GetTelematicsNodeFields(nodeId);

            return(response);
        }
Пример #12
0
        public static async Task <GetFileStatusResponse> GetFileStatusExample(string trackingCode)
        {
            TelematicsV2          telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            GetFileStatusResponse response     = await telematicsV2.GetFileStatus(trackingCode);

            return(response);
        }
Пример #13
0
        public static async Task <EquipmentResponse> DeleteTelematicsNode(int nodeId)
        {
            TelematicsV2      telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            EquipmentResponse response     = await telematicsV2.DeleteTelematicsNode(nodeId);

            return(response);
        }
Пример #14
0
        public static async Task <UserNotificationResponse> GetNotificationsForApiPartnerExample()
        {
            TelematicsV2             telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            UserNotificationResponse response     = await telematicsV2.GetNotificationForApiPartner();

            return(response);
        }
Пример #15
0
        public static async Task <GetTreeResponse> GetTreeExample()
        {
            TelematicsV2    telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            GetTreeResponse response     = await telematicsV2.GetTree();

            return(response);
        }
Пример #16
0
        public static async Task <EnrollFilesResponse> PostNotificationFile(FileRequest fileRequest)
        {
            TelematicsV2        telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            EnrollFilesResponse response     = await telematicsV2.PostNotificationFile(fileRequest);

            return(response);
        }
 static async Task Main()
 {
     DataExchangeAPI = new TelematicsV2(publicKey, privateKey, userKey);
 }