Esempio n. 1
0
        //------------------------------------------------------------------------------
        public virtual void CountPhotoByUrl()
        {
            string _url = (string)util.GetParamValue(_context, "url");

            ResponsePhotoInt wrapper = new ResponsePhotoInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "photo/count/by-url";

            int i = api.CountPhotoByUrl(
                _url
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Esempio n. 2
0
        //------------------------------------------------------------------------------
        public virtual void CountPhotoByUuidByExternalId()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");
            string _external_id = (string)util.GetParamValue(_context, "external_id");

            ResponsePhotoInt wrapper = new ResponsePhotoInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "photo/count/by-uuid/by-external-id";

            int i = api.CountPhotoByUuidByExternalId(
                _uuid
                , _external_id
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Esempio n. 3
0
        //------------------------------------------------------------------------------
        public virtual void CountPhoto()
        {
            ResponsePhotoInt wrapper = new ResponsePhotoInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "photo/count";

            int i = api.CountPhoto(
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }