OpenMetaverse.Messages.Linden.LandResourcesMessage.GetMessageHandler C# (CSharp) Method

GetMessageHandler() public static method

Detects which class handles deserialization of this message
public static GetMessageHandler ( OSDMap map ) : IMessage
map OSDMap An containing the data
return IMessage
        public static IMessage GetMessageHandler(OSDMap map)
        {
            if (map.ContainsKey("parcel_id"))
            {
                return new LandResourcesRequest();
            }
            else if (map.ContainsKey("ScriptResourceSummary"))
            {
                return new LandResourcesMessage();
            }
            return null;
        }
    }