Em Andamento

Implement standard API interface for MySpace, using RESTful API

Attached is an abstract class in C#, .NET framework 3.5, in addition to a couple of supplementary class objects.

We need this class to be implemented as a specific MySpace provider class that implements functionality for all of the methods laid out in the abstract class.

In addition, we would like a small test bed project to be attached so that the provider can be tested out with MySpace.

Based on current information available on MySpace API's, the best chance to implement this interface is using the RESTful API MySpace exposes.

## Deliverables

using [url removed, login to view];

namespace [url removed, login to view]

{

? abstract class RBSocialNetworkProvider

? {

? private readonly string _sessionId;

? private string _socialNetworkCode;

? /*TODO: establish all of the other properties necessary for

? ? * communication with the specific social network

? ? */

? public string SessionId

? {

? ? get { return _sessionId; }

? }

? public RBSocialNetworkProvider(string sessionId)

? {

? ? _sessionId = sessionId;

? ? /*TODO: set _socialNetworkCode to code default based on the provider

? ? ? */

? }

? /*

? ? * This method returns a list of friends for the current social network user

? ? * it is a simple array of unique user id's of friends

? ? * of the logged in user (based on _sessionId) in the current social network

? ? */

? public abstract string[] GetFriends();

? /*TODO

? ? *

? ? * this method returns the social nework context of the currently logged in user, based on session id

? ? *

? ? */

? public abstract string GetUid();

? /*TODO:

? ? * This method returns a SocialNetworkUser object for the currently logged on user

? ? * note that only unique user id and email are directly exposed, and the rest of the dmographics are loaded into

? ? * the demographics dictionary

? ? *

? ? * More deails on the makeup of SocialNetworkUser below.

? ? */

? public abstract SocialNetworkUser GetInfo();

? /*

? ? * TODO:

? ? *

? ? **/

? public abstract SocialNetworkUser[] GetInfo(string[] uids);

? /*TODO:

? ? * This method returns a list of group id's for the social network of the currently

? ? * logged on user

? ? */

? public abstract string[] GetGroups();

? /*TODO:

? ? *

? ? * This method will return a singular SocialNetworkGroup object

? ? * based on group id. Limited to groups available to currently logged on user

? ? *

? ? */

? public abstract SocialNetworkGroup GetGroupInfo(string groupId);

? /*TODO:

? ? *

? ? * similar to GetGroups method above, only with detail.

? ? * Limited to groups visible to the currently logged on user

? ? *

? ? */

? public abstract SocialNetworkGroup[] GetGroupDetails();

? /*TODO:

? ? *

? ? * return list of group member id's based on the group id, for the currently logged on member

? ? */

? public abstract string[] GetGroupMembers(string groupId);

? /*TODO:

? ? *

? ? * send notification to the user within the social network framework. The notification at bare minimum must support formatted text and links

? ? */

? public abstract void SendUserNotification(string notification, string[] uids);

? }

? public class SocialNetworkUser

? {

? private StringDictionary _demographics;

? private readonly string _userId;

? private readonly string _email;

? private readonly string _socialNetworkCode;

? public StringDictionary Demographics

? {

? ? get { return _demographics; }

? }

? public string UserId

? {

? ? get { return _userId; }

? }

? public string Email

? {

? ? get { return _email; }

? }

? public string SocialNetworkCode

? {

? ? get { return _socialNetworkCode; }

? }

? public SocialNetworkUser(string socialNetworkCode,string userId,string email)

? {

? ? _socialNetworkCode = socialNetworkCode;

? ? _userId = userId;

? ? _email = email;

? ? _demographics=new StringDictionary();

? }

? public void AddDemographic(string key,string value)

? {

? ? if(![url removed, login to view](key))

? ? ? [url removed, login to view](key,value);

? ?

? }

? public void SetDemographics(StringDictionary demogrpaphics)

? {

? ? _demographics = demogrpaphics;

? }

? }

? public class SocialNetworkGroup

? {

? private readonly string _groupId;

? private readonly string _groupName;

? private readonly string _groupDesc;

? private readonly string _groupType;

? private readonly string _groupSubType;

? #region Properties

? public string GroupId

? {

? ? get { return _groupId; }

? }

? public string GroupName

? {

? ? get { return _groupName; }

? }

? public string GroupDesc

? {

? ? get { return _groupDesc; }

? }

? public string GroupType

? {

? ? get { return _groupType; }

? }

? public string GroupSubType

? {

? ? get { return _groupSubType; }

? }

? #endregion

? public SocialNetworkGroup(string groupId,string groupName,string groupDesc,string groupType,string groupSubType)

? {

? ? _groupId = groupId;

? ? _groupName = groupName;

? ? _groupDesc = groupDesc;

? ? _groupType = groupType;

? ? _groupSubType = groupSubType;

? }

? }

}

Habilidades: Programação C#, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: string standard, standard string, notification using php, implements set, methods engineering, todo list, social api, restful, rest api, rb, implement, communication engineering, api rest php, api key, api interface using, net rest api, implement restful, rest test framework, php text array, net restful, net private key, rest based api, rest framework php, text based interface, php api session

Acerca do Empregador:
( 68 comentários ) United States

ID do Projeto: #3040583

Premiar a:

AnIv

See private message.

$340 USD em 27 dias
(60 Avaliações)
6.9

6 freelancers estão ofertando em média $649 para este trabalho

seventhsensesl

See private message.

$748 USD in 27 dias
(77 Comentários)
5.0
newtechnolo

See private message.

$850 USD in 27 dias
(6 Comentários)
2.5
earthcoders

See private message.

$425 USD in 27 dias
(1 Comentário)
1.9
mitaleesohom

See private message.

$807.5 USD in 27 dias
(0 Comentários)
0.0
vigneshsolutions

See private message.

$722.5 USD in 27 dias
(0 Comentários)
0.0