Skip to content

Commit 96bddfc

Browse files
committed
Forgot to include some parser test files.
1 parent 0b71289 commit 96bddfc

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package ParserExamples.Models;
2+
3+
import System.Runtime.Serialization;
4+
5+
/// <summary>
6+
/// A class representing a group of tracks.
7+
/// </summary>
8+
/// <threadsafety>
9+
/// This class is mutable. And it is not thread-safe.
10+
/// </threadsafety>
11+
[DataContract]
12+
public class AlbumInfo {
13+
14+
/// <value>The track name.</value>
15+
@DataMember
16+
public String AlbumName;
17+
18+
/// <value>The track duration in milliseconds</value>
19+
public List<TrackInfo> Tracks;
20+
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package ParserExamples.Models;
2+
3+
import System.Runtime.Serialization;
4+
5+
/// <summary>
6+
/// A class representing a Track.
7+
/// </summary>
8+
/// <threadsafety>
9+
/// This class is mutable. And it is not thread-safe.
10+
/// </threadsafety>
11+
[DataContract]
12+
public class TrackInfo {
13+
14+
/// <value>The track name.</value>
15+
@DataMember
16+
public String Name;
17+
18+
/// <value>The artist/band name.</value>
19+
@DataMember
20+
public String artist;
21+
22+
/// <value>The track duration in milliseconds</value>
23+
public int durationMillis;
24+
25+
/// <value>The track duration in milliseconds</value>
26+
public long contentId;
27+
28+
}

rsc/java/ParserExamples/Services/ITrackSearchService.java

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package ParserExamples.Services;import System.ServiceModel;import System.ServiceModel.Web;import ParserExamples.Models;import ParserExamples.Searching;/// <summary>/// This interface provides the contract for track searching./// </summary>/// <remarks>/// Implementations are expected to be effectively thread-safe./// </remarks>[ServiceContract]public interface ITrackSearchService{ /// <summary> /// Searches tracks. /// </summary> /// <param name="criteria">The search criteria</param> /// <returns>The search result</returns> @OperationContract @WebInvoke(Method = "POST", UriTemplate = "/TrackSearch", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json) @TransactionFlow(TransactionFlowOption.Allowed) SearchResult<TrackInfo> Search(TrackSearchCriteria criteria) { ; } /// <summary> /// Searches tracks that have past due date. /// </summary> /// <param name="albumName">The album name</param> /// <returns>The search result</returns> @OperationContract @WebInvoke(Method = "POST", UriTemplate = "/GetAlbumTracks?albumName={albumName}", ResponseFormat = WebMessageFormat.Json) @TransactionFlow(TransactionFlowOption.Allowed) SearchResult<Dictionary<AlbumInfo, List<TrackInfo>>> GetAlbumTracks(String albumName) { content of block; }}

versions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
####0.3.0
33
date: 2016-1-16
44

5-
commit: ?
5+
commit: 0b7128980ba31623d17f85d9f10bd4d99bd1288e
66

77
* __Added Java parsing support and tests.__
88
* Added Keyword interface for generic language keyword operations such as isKeyword(), isBlockModifierKeyword(), isDataTypeKeyword(), etc.

0 commit comments

Comments
 (0)