Beispiel #1
0
        public void Share(int platformId, string text)
        {
            //1 facebook
            //2 twitter
            //3 vk

            if (platformId == 1)
            {
                Facebook.Facebook fb = new Facebook.Facebook();
                fb.Share(text);
            }
            else if (platformId == 2)
            {
                Twitter.Twitter tw = new Twitter.Twitter();
                tw.Tweet(text);
            }
            else if (platformId == 3)
            {
                VK.VK vk = new VK.VK();
                vk.Post(text);
            }
        }
Beispiel #2
0
 public FacebookPorting(Facebook.Facebook facebook)
 {
     _facebook = facebook;
 }