本文整理匯總了C#中OpenMetaverse.Messages.Linden.AssetUploaderBlock類的典型用法代碼示例。如果您正苦於以下問題:C# AssetUploaderBlock類的具體用法?C# AssetUploaderBlock怎麽用?C# AssetUploaderBlock使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AssetUploaderBlock類屬於OpenMetaverse.Messages.Linden命名空間,在下文中一共展示了AssetUploaderBlock類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Deserialize
/// <summary>
/// Deserialize the message
/// </summary>
/// <param name="map">An <see cref="OSDMap"/> containing the data</param>
public void Deserialize(OSDMap map)
{
if (map.ContainsKey("task_id"))
Request = new UpdateScriptTaskUpdateMessage();
else if (map.ContainsKey("state") && map["state"].AsString().Equals("upload"))
Request = new UploaderRequestUpload();
else if (map.ContainsKey("state") && map["state"].AsString().Equals("complete")
&& map.ContainsKey("errors"))
Request = new UploaderScriptRequestError();
else if (map.ContainsKey("state") && map["state"].AsString().Equals("complete"))
Request = new UploaderRequestScriptComplete();
else
Logger.Log("Unable to deserialize UpdateScriptTaskMessage: No message handler exists for state " + map["state"].AsString(), Helpers.LogLevel.Warning);
if (Request != null)
Request.Deserialize(map);
}