Using Open Platform API to record voting results for agenda items.

46 views
Skip to first unread message

Randy Masters

unread,
Jul 18, 2013, 12:52:23 PM7/18/13
to granicus-...@googlegroups.com
I'm looking for documentation and/or code samples specific to recording voting results for agenda items.

Javier Muniz

unread,
Jul 18, 2013, 1:26:11 PM7/18/13
to granicus-...@googlegroups.com
Hi Randy,

In order to get a vote result into the system you'll need to create two metadata objects, one for the motion, and one for the vote itself. To make a metadata object into a motion or vote, set the Payload property to a Vote or Motion object.

for example:

MetaDataData voteMeta = new MetaDataData();
Vote vote = new Vote();
// do assign vote properties here.
voteMeta.Payload = vote;

at that point, the system will see that the metadata should be turned into a vote object, and will act accordingly. Do the same thing for the motion and you should be in good shape.

Let me know if you need any assistance and what language you're working in and I'd be happy to provide better examples.

-javier

From: granicus-...@googlegroups.com [granicus-...@googlegroups.com] on behalf of Randy Masters [randy.r...@gmail.com]
Sent: Thursday, July 18, 2013 9:52 AM
To: granicus-...@googlegroups.com
Subject: Using Open Platform API to record voting results for agenda items.

I'm looking for documentation and/or code samples specific to recording voting results for agenda items.

--
You received this message because you are subscribed to the Google Groups "Granicus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to granicus-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Randy Masters

unread,
Jul 18, 2013, 2:14:54 PM7/18/13
to granicus-...@googlegroups.com
Javier,
Thanks for your response.  I will refer back to the api doc to learn a little more about the metadata object.  I'm trying to go 0-60 in ten seconds in regards to understanding this api enough to give a rough estimate on rewriting an existing interface.  I will be working with vb.net.  Thanks for offering your assistance.  I will be posting additional questions later.
Reply all
Reply to author
Forward
0 new messages