"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.submitVote=exports.getVoteDetail=void 0;var _constant=require("../utils/constant"),requestWithSdk=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t&&"function"==typeof t.requestStrict?t.requestStrict(e,i):t&&"function"==typeof t.request?t.request(e,i):Promise.reject(new Error("sdkInstance is required"))},getVoteDetail=function(t){var e=t.sdkInstance,i=t.ActivityId,o=t.VoteId;return requestWithSdk(e,_constant.REQUEST_URL_MAP.VOTE_GET,{method:"GET",data:{ActivityId:i,VoteId:o,OnlyNeedConfig:0}})};exports.getVoteDetail=getVoteDetail;var submitVote=function(t){var e=t.sdkInstance,i=t.ActivityId,o=t.VoteId,r=t.OptionType,n=t.RegisterType;return requestWithSdk(e,_constant.REQUEST_URL_MAP.VOTE_SUBMIT,{method:"POST",data:{ActivityId:i,VoteId:o,OptionType:r,RegisterType:n}})};exports.submitVote=submitVote;