app center;增加發送ping的秒

This commit is contained in:
Caiyanpeng committed 2021-11-12 16:21:13 +08:00
1 parent 1bd1ffdb5a
commit d754ff3b15
719 files changed
+34172 -2875

No files matched your search

@@ -0,0 +1,39 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.AppCenter.Unity.Crashes
{
public class ErrorAttachmentLog
{
public string Text { get; private set; }
public byte[] Data { get; private set; }
public string FileName { get; private set; }
public string ContentType { get; private set; }
public AttachmentType Type { get; private set; }
public static ErrorAttachmentLog AttachmentWithText(string text, string fileName)
{
return new ErrorAttachmentLog
{
Text = text,
FileName = fileName,
Type = AttachmentType.Text
};
}
public static ErrorAttachmentLog AttachmentWithBinary(byte[] data, string fileName, string contentType)
{
return new ErrorAttachmentLog
{
Data = data,
FileName = fileName,
ContentType = contentType,
Type = AttachmentType.Binary
};
}
public enum AttachmentType { Text, Binary }
}
}