Questions tagged [contract]

424 questions
0
votes
1 answer

Gradle config for ContentProvider contract

I'm trying to make separate artifact in my project to build jar file with ContentProvider contract classes. To build this jar I use next task: task contractsJar(type: Jar) { from android.applicationVariants.release.javaCompile.destinationDir …
Lampapos
  • 1,063
  • 1
  • 12
  • 26
0
votes
3 answers

Javascript: How to ensure that a parameter has a specific interface?

Edit: I found this interesting library which looks like it can do exactly what I was describing at the bottom: https://github.com/philbooth/check-types.js Looks like you can do it by calling check.quacksLike. I'm fairly new to using javascript and…
Alex
  • 759
  • 5
  • 12
0
votes
3 answers

How do you maintain technical contracts between development teams?

For example team A and team B are working on different applications that need to implement a similar feature. The feature in question relies on a database and the database is under the control of team B. Even though the user interfaces of the two…
Ahmed Chaudhary
  • 189
  • 1
  • 9
0
votes
1 answer

How should i create datacontract for a List of class which contain nested list of classes as properties

public class GroupItem { public string Name {get;set;} public string ID{get;set;} } public class MainItem { public List Group {get;set;} public string Title {get;set;} public string…
Vishwajeet
  • 1,575
  • 2
  • 19
  • 35
0
votes
3 answers

Good information about type systems based on contracts/constraints?

Problem: I am looking for good introduction about type systems, which are based on contracts/constraints (sorry, I don't remember which term one is appropriate for a type system). I need that information to be able to implement an experimental type…
0
votes
1 answer

Launching Google Calendar app from another app into a Month View

Is it possible to launch the Google calendar app from within another app, Or even better launch your own Local Google calender into monthView with only the events you create shown? I'll be using API 14+, if it is possible can you provide some code…
J4C3N-14
  • 686
  • 1
  • 13
  • 32
0
votes
2 answers

Can't set elements height to its scrollHeight?

I can't for some reason make a smooth div, I'm trying to make it expand and contract when I click a button, but it doesn't work. Javascript: function expandContract(id) { var object = document.getElementById(id); if (object.style.height !=…
user1768788
  • 1,265
  • 1
  • 10
  • 29
0
votes
1 answer

How to make an interface available via web service?

I'm working on .NET, I want to write an interface on web service for my clients(multi client) so they can inherit from my interface to make their own web service, and I can call their web service dynamically. Is there any way to make…
moodym
  • 13
  • 1
  • 3
0
votes
1 answer

Contract.Ensures for an OverFlowException

I have a simple Method that returns the exponential value from a given number: public int Exp(int num) { return Convert.ToInt32(System.Math.Exp(num)); } When running Pex I get an OverFlowException in the Summary/Exception field…
0
votes
0 answers

Using the WinRT search in a Windows Service

I am a C# sharp developer and have a need to do some searching in Windows 8 from a Windows Service. Is it possible to search apps, settings and files and other search contract registered providers from a normal Windows Service? How would I go about…
CosmosKey
  • 1,287
  • 11
  • 13
0
votes
2 answers

WCF - call method from service implementation

What I'm trying to do is the following: 1) I have the following WCF service contract: [ServiceContract] public interface IUploadService { [OperationContract] ServiceData Upload(Request request); } [DataContract] public class Request { …
Høgsdal
  • 395
  • 4
  • 21
0
votes
2 answers

Why am I getting an InvalidOperationException after adding a [MessageContract] attribute?

The operation 'PRPA_IN201301UV02' could not be loaded because it has a parameter or return type of type System.ServiceModel.Channels.Message or a type that has MessageContractAttribute and other parameters of different types. When using…
Abir
  • 103
  • 8
0
votes
1 answer

Unable to find sharing info Win8 app

I'm creating a Windows 8 app that should be using the Share contract that is the sharing source, but the problem is that it keeps on waiting for share info from the app but I can't manage to find out why it's still waiting... The only code I…
Tom Kerkhove
  • 2,151
  • 5
  • 26
  • 42
0
votes
1 answer

Cannot request a new contract in iTunes connect (for iOS paid paid application)

Here is my situation: I joined both Mac OSX and iOS dev program. I have successfully got a contract of Mac OS X Paid Applications. Now I want to get a contract for iOS paid application. but, as my screenshot showing, there is no button for me to…
demaxSH
  • 1,743
  • 2
  • 20
  • 27
0
votes
1 answer

JQuery expand and contract div on click

I'm trying to use jQuery to expand and contract the height of a div when a link is clicked, and I can't for the life of me work out what I'm doing wrong. Here's the html;
this is a…
bananabread_
  • 27
  • 1
  • 4