コード例 #1
0
 public bool NewDirectMessage(oAuthTwitter OAuth, string DirectMessage, int UserId)
 {
     Twitter.Core.DirectMessageMethods.DirectMessage directMessage = new Twitter.Core.DirectMessageMethods.DirectMessage();
     xmlResult = directMessage.NewDirectMessage(OAuth, DirectMessage, UserId);
     XmlNodeList xmlNodeList = xmlResult.GetElementsByTagName("direct_message");
     if (xmlNodeList.Count > 0)
     {
         return true;
     }
     return false;
 }