Exemplo n.º 1
0
        internal static XDocument FullSyncDefaultResponseToXml(FullSyncDefaultResponse fullSyncDefaultResponse)
        {
            var       json = FullSyncDefaultResponseToJson(fullSyncDefaultResponse);
            XDocument xml  = C8oFullSyncTranslator.FullSyncJsonToXml(json);

            return(xml);
        }
Exemplo n.º 2
0
        internal static XDocument QueryEnumeratorToXml(QueryEnumerator queryEnumerator)
        {
            var       json = QueryEnumeratorToJson(queryEnumerator);
            XDocument xml  = C8oFullSyncTranslator.FullSyncJsonToXml(json);

            return(xml);
        }
Exemplo n.º 3
0
        internal static XDocument FullSyncDocumentOperationResponseToXml(FullSyncDocumentOperationResponse fullSyncDocumentOperationResponse)
        {
            var json = FullSyncDocumentOperationResponseToJSON(fullSyncDocumentOperationResponse);
            var xml  = C8oFullSyncTranslator.FullSyncJsonToXml(json);

            return(xml);
        }
Exemplo n.º 4
0
        internal static XDocument DocumentToXml(Document document)
        {
            var json = DocumentToJson(document);
            var xml  = C8oFullSyncTranslator.FullSyncJsonToXml(json);

            return(xml);
        }
Exemplo n.º 5
0
        internal static XDocument ReplicationChangeEventArgsToXml(ReplicationChangeEventArgs changeEvent)
        {
            var    json = ReplicationChangeEventArgsToJson(changeEvent);
            string toto = json.ToString();
            var    xml  = C8oFullSyncTranslator.FullSyncJsonToXml(json);

            return(xml);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Handles the fullSync response depending to the C8oResponseListener.
        /// </summary>
        /// <param name="response"></param>
        /// <param name="parameters"></param>
        /// <param name="c8oResponseListener"></param>
        public virtual object HandleFullSyncResponse(object response, C8oResponseListener listener)
        {
            if (response is JObject)
            {
                if (listener is C8oResponseXmlListener)
                {
                    response = C8oFullSyncTranslator.FullSyncJsonToXml(response as JObject);
                }
            }

            return(response);
        }