Esempio n. 1
0
        public Library_Data retrieve_lib_data(string sLibraryName)
        {
            var retrieve_response = client.Get(sLibraryTable_Path + sLibraryName);

            if (retrieve_response.Body != "null")
            {
                Library_Data data = retrieve_response.ResultAs <Library_Data>();
                return(data);
            }
            return(null);
        }
Esempio n. 2
0
        public bool add_lib_info(string sName, string sLocation, string sManager)
        {
            var data = new Library_Data
            {
                name     = sName,
                location = sLocation,
                manager  = sManager
            };
            SetResponse  response = client.Set(sLibraryTable_Path + data.name, data);
            Library_Data result   = response.ResultAs <Library_Data>();

            if (result != null)
            {
                return(true);
            }
            return(false);
        }