c# - We are not able to get selected Card value from action in Hero Card through Bot Application -


problem: not able selected card value action in hero card in bot application

code:

string val = message.text; //this value every time coming null after selected card button.  resultincsv = url; activity replytoconversation = (activity) context.makemessage(); rootobjects holder = jsonconvert.deserializeobject < rootobjects > (resultincsv); list < attachment > = new list < attachment > (); attachment attach = new attachment(); (int v = 0; v < holder.vehiclelistsresult.count; v++) {     attach = getherocard(         holder.vehiclelistsresult[v].name,         "",         holder.vehiclelistsresult[v].id.tostring(),         new cardimage(url: holder.vehiclelistsresult[v].imagepath),         new cardaction(actiontypes.imback, holder.vehiclelistsresult[v].description, value: holder.vehiclelistsresult[v].id.tostring()));     a.add(attach); }  replytoconversation.attachmentlayout = attachmentlayouttypes.carousel; replytoconversation.attachments = a; await context.postasync(replytoconversation); 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -