Creating the resources class

To create the resources class, perform the following procedure:

  1. In the context menu of the project, click Add » Class...

  2. In the Name input field, enter FacebookEventsImportResources.

  3. Open the file FacebookEventsImportResources.cs and add the following namespaces:

    using Telerik.Sitefinity.Localization;
    using Telerik.Sitefinity.Localization.Data;

  4. Change the class definition to:

    [ObjectInfo( typeof( FacebookEventsImportResources ), Title = "FacebookEventsImportResources", Description = "FacebookEventsImportResourcesDescription" )]
    public class FacebookEventsImportResources : Resource
    {
    }

  5. Add the following constructors:

    public FacebookEventsImportResources()
    {
    }
     
    public FacebookEventsImportResources( ResourceDataProvider dataProvider )
        : base( dataProvider )
    {
    }

  6. Define the resources by pasting the following code:

    [ResourceEntry( "FacebookEventsInboundPipeName",
        Value = "Facebook Events Inbound Pipe",
        Description = "Facebook Events Inbound Pipe",
        LastModified = "2011/10/10" )]
    public string FacebookEventsInboundPipeName
    {
        get
        {
            return this[ "FacebookEventsInboundPipeName" ];
        }
    }
     
    [ResourceEntry( "FacebookEventsOutboundPipeName",
        Value = "Facebook Events Outbound Pipe",
        Description = "Facebook Events Outbound Pipe",
        LastModified = "2011/10/10" )]
    public string FacebookEventsOutboundPipeName
    {
        get
        {
            return this[ "FacebookEventsOutboundPipeName" ];
        }
    }

You must define resources for the inbound pipe name and the outbound pipe name.

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK