Exemple #1
0
        public CAMAPI_STATUS DeleteFavorite(string id)
        {
            // Deletes a previously saved favorite using id to identify which favorite to delete
            // returns: CAMAPI status
            string jdata = api.FetchTarget($"/delete_favorite?id={id}");

            return((CAMAPI_STATUS)JsonConvert.DeserializeObject(jdata, typeof(CAMAPI_STATUS)));
        }
Exemple #2
0
        public CAMAPI_STATUS Save()
        {
            // Saves videos when multishot capture is enabled and one or more multishot buffers contain unsaved videos.
            // :return: outcome, either CAMAPI_STATUS.OKAY or CAMAPI_STATUS.INVALID_STATE
            string url = "/save";

            string jdata = api.FetchTarget(url);

            return((CAMAPI_STATUS)JsonConvert.DeserializeObject(jdata, typeof(CAMAPI_STATUS)));
        }