You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
850 B
26 lines
850 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using ShenTun.Camera;
|
|
using ShenTun.Camera.Common;
|
|
namespace ShenTun.PhotoGraph
|
|
{
|
|
public class PhotoGraphMethods
|
|
{
|
|
private readonly CameraClient _cameraClient = new CameraClient();
|
|
public async Task<object> getPhotoGrap(dynamic request)
|
|
{
|
|
RequestInterface req=new RequestInterface(){
|
|
PhotoInterface = request.asPhotoInterface,
|
|
ImageFormat = request.asImageFormat,
|
|
CapturesTotal = request.asCapturesTotal,
|
|
CapturesTimes = request.asCapturesTimes,
|
|
IsAutoConnect=request.asIsAutoConnect,
|
|
};
|
|
return await _cameraClient.ShowCameraAsync(req);
|
|
}
|
|
}
|
|
}
|