A short while ago I posted some code for a C# twitter update. I decided to move the same functionality / logic to F#. Here is what I came up with. 1: namespace Server.Actions 2: 3: open System 4: open System.IO 5: open System.Net 6: open System.Text 7: 8: type public TwitterUpdate() = 9: 10: //member variables 11: [<DefaultValue>] val mutable _body : string 12: [<DefaultValue>] val mutable _userName : string 13: [<DefaultValue>] val mutable _password : string 14: 15: //Properties...
For what it's worth a simple twitter update. 1: using System; 2: using System.IO; 3: using System.Net; 4: using System.Text; 5: 6: namespace Server.Actions 7: { 8: public class TwitterUpdate 9: { 10: public string Body { get; set; } 11: public string Login { get; set; } 12: public string Password { get; set; } 13: 14: public override void Execute() 15: { 16: try 17: { 18: //encode user name and password 19: string creds = Convert.ToBase64String(Enco... this.Login,...