ListID Vs ListIDResult

May 17, 2013 at 7:13 AM
Edited May 17, 2013 at 7:14 AM
Can you please clarify whats the difference between ListID and ListIDResult. The query is as follows:
           var lists = from list in twitterCtx.List
                          where list.Type == ListType.Ownerships && list.ScreenName == Screen_Name
                          select list;

            foreach (var list in lists)
            {
                DataRow Dr = DT_Lists.NewRow();
                Dr["List_ID"] = list.ListIDResult;
                Dr["ID"]= list..ListID;
                Dr["Name"] = list.FullName;
                Dr["Description"] = list.Description;
                Dr["Created_At"] = list.CreatedAt;
                Dr["URL"] = list.Uri;
                Dr["Members_Count"] = list.MemberCount;
                Dr["Subscribers_Count"] = list.SubscriberCount;
                DT_Lists.Rows.Add(Dr);
            }
Coordinator
May 17, 2013 at 2:31 PM
Hi,

The difference is that ListID is an input and ListIDResult is an output. Input means that it's a parameter used as part of a query. Output means that this is what Twitter returns. You'll see this pattern used in other places where the input and output have the same name. It covers the situation where you might not have specified a ListID in the query, so it would be null, but I don't overwrite your value when Twitter sends a ListID back.

@JoeMayo
May 17, 2013 at 8:38 PM
Thank you.
Sent from Windows Mail
From: JoeMayo
Sent: ‎Friday‎, ‎17‎ ‎May‎ ‎2013 ‎20‎:‎01
To: [email removed]

From: JoeMayo

Hi,

The difference is that ListID is an input and ListIDResult is an output. Input means that it's a parameter used as part of a query. Output means that this is what Twitter returns. You'll see this pattern used in other places where the input and output have the same name. It covers the situation where you might not have specified a ListID in the query, so it would be null, but I don't overwrite your value when Twitter sends a ListID back.

@JoeMayo