Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move API and Browser project #7

Merged
merged 1 commit into from
Aug 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 0 additions & 25 deletions Automation Samples.sln

This file was deleted.

15 changes: 15 additions & 0 deletions Microsoft.Dynamics365.UIAutomation.Api/AssemblyVersionInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System.Reflection;

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("8.2.0.0")]
[assembly: AssemblyFileVersion("8.2.0.0")]
[assembly: AssemblyInformationalVersion("8.2.0.0")]
61 changes: 61 additions & 0 deletions Microsoft.Dynamics365.UIAutomation.Api/Controls/CrmControls.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

using System.Collections.Generic;

namespace Microsoft.Dynamics365.UIAutomation.Api
{
public class CompositeControl
{
public string Id { get; set; }
public string Name { get; set; }
public List<Field> Fields { get; set; }
}

/// <summary>
/// Represents an individual field on a Dynamics 365 Customer Experience web form.
/// </summary>
public class Field
{
/// <summary>
/// Gets or sets the identifier of the field.
/// </summary>
/// <value>
/// The identifier.
/// </value>
public string Id { get; set; }

/// <summary>
/// Gets or sets the name of the field.
/// </summary>
/// <value>
/// The name.
/// </value>
public string Name { get; set; }

/// <summary>
/// Gets or sets the value of the field.
/// </summary>
/// <value>
/// The value.
/// </value>
public string Value { get; set; }
}

/// <summary>
/// Represents an Option Set in Dynamics 365.
/// </summary>
public class OptionSet
{
public string Name { get; set; }
public string Value { get; set; }
}

public class Lookup
{
public string Name { get; set; }
public string Value { get; set; }
public int Index { get; set; }
}

}
27 changes: 27 additions & 0 deletions Microsoft.Dynamics365.UIAutomation.Api/DTOs/XrmAppNotification.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

using System;

namespace Microsoft.Dynamics365.UIAutomation.Api
{
public class XrmAppNotification
{
internal XrmAppNotification(XrmNotficationPage page)
{
_page = page;
}

private XrmNotficationPage _page;

public Int32 Index { get; internal set; }
public string Title { get; internal set; }
public string Message { get; internal set; }
public string DismissButtonText { get; internal set; }

public void Dismiss()
{
_page.Close(this);
}
}
}